Я 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
при выполнении выдает ошибку как неправильный синтаксис рядом с "как"
Что за ошибка
datediff()не является функцией Postgres. - person Gordon Linoff   schedule 02.12.2014