I am postgres here is my query
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
on executing it gives error as incorrect syntax near "as"
What the mistake
datediff()is not a Postgres function.