【发布时间】:2014-04-13 12:51:39
【问题描述】:
我根据在 Internet 上找到的示例在 postgres 中创建了一个表。 stored 列的定义为:
stored | timestamp without time zone | default '2014-04-11 21:19:20.144487'::timestamp without time zone
如何将其更改为“正常”时间戳 now() 类型?那么在插入数据的时候会标记当前的日期时间吗?
提前谢谢大家!
【问题讨论】:
-
normal timestamp到底是什么意思? PostgreSQL 有以下日期、时间和时间戳类型:postgresql.org/docs/9.1/static/datatype-datetime.html 请指出您认为“正常”的一种。
标签: postgresql timestamp