PG中的时间current_timestamp、now()和clock_timestamp()
Tags: clock_timestampGreenPlumPG
简介
同一个事务内的当前时间相同:current_timestamp、now();
在事务中随时间的前进而变化:clock_timestamp();
通过now()获取的时间是最完整的时间,包括时区,秒也保留到了6位小数。
CURRENT_TIME和CURRENT_TIMESTAMP传递带有时区的值;
LOCALTIME和LOCALTIMESTAMP传递的值不带时区。