PostgreSQL 查看时区
PostgreSQL About 232 words查看当前时区
show timezone;
或者
show time zone;
查看内置时区
所有时区
select * from pg_timezone_names;
+8
时区
select * from pg_timezone_names where utc_offset = '08:00:00';
设置时区
set time zone 'PRC';
以指定时区展示时间
select now() at time zone 'Asia/Shanghai';
Views: 11,604 · Posted: 2020-12-30
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓

Loading...