【发布时间】:2015-01-30 16:52:51
【问题描述】:
我是 postgres,这是我的查询
update cust_final_1 as cust set cust.enure_days=datediff(day,1date,current_date)
from card as card join cust_final_1 as cust on cust.cust_id=card.cardh_cust_id
left join bt_time as tim on card.cardh_act_dt=tim.time_id
在执行时会出现错误,因为“as”附近的语法不正确
什么错误
【问题讨论】:
-
这不是 Postgres 语法。
datediff()不是 Postgres 函数。
标签: sql postgresql