为什么PostgreSQL TimeStamp默认值不插入日期?

时间:2017-05-11 15:19:04

标签: postgresql

我的列定义如下:

https://<organization_link>/api/data/v8.2/cust_entity?$selec‌​t=cust_fullname,stat‌​ecode&$count=true&$f‌​ilter=(contains(cust‌​_fullname,%27testFir‌​stName%27)%20or%20co‌​ntains(cust_fullname‌​,%27testLastName%27)‌​)%20and%20statecode%‌​20eq%200

,我插入的值看起来像

  

0001-01-01 00:09:24-05:50:36

为什么没有插入日期?

抱歉,我忘了提供类型:

ALTER TABLE "SalesOrderHeader" ALTER COLUMN "CreatedDate"  SET DEFAULT now();

0 个答案:

没有答案