【发布时间】:2019-07-26 21:57:29
【问题描述】:
我需要从timestamp(0) without time zone 中舍入毫秒值。
例如:2018-04-19 10:43:13.719 到 2018-04-19 10:43:13.000
【问题讨论】:
-
你的意思是 round 还是 truncate 如你的例子所示?此外,
timestamp(0)不存储毫秒数。这就是附加的(0)的用途。您是否可能有不同的源类型,并且只有目标是timestamp(0)并且想要在分配中截断而不是舍入?还是显示问题?
标签: postgresql timestamp rounding