PostgreSQL 查看时区
PostgreSQL 大约 232 字查看当前时区
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';
阅读 7353 · 发布于 2020-12-30
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
VisualVM 2.0.6 最大堆内存大小问题阅读 1296
-
Vue2 生命周期阅读 238
-
Angular Material mat-error 组件输入时不校验解决方法阅读 1833
-
数据结构:满二叉树和完全二叉树阅读 1828
-
Go 定时任务阅读 1524
-
PostgreSQL duplicate key violates unique constraint阅读 1818
-
Spring Boot 将 InputStream 输入流转换为 String阅读 477
-
minikube create host timed out in 360.000000 seconds阅读 440
-
Spring Boot 优雅停机阅读 480
-
AWS 更换 SSH 登陆密钥对阅读 1937