【发布时间】:2016-07-08 16:37:50
【问题描述】:
我尝试运行以下 concat_ws 代码,但出现语法错误。这个sql代码有什么问题?
select count(policy_number)
from resp_party
where c_policy_effective_date = concat_ws('-', policy_effective_date_yyyy,
(lpad(policy_effective_date_mm, 2, ""00"")),
(lpad(policy_effective_date_dd, 2, ""00"")))
【问题讨论】: