PostgreSQL 数据库中时间字段如何减去 8 小时?
直接放一个测试执行的过程,方便大家使用:
postgres=# create table tt(id int, ttime timestamp without time zone);
CREATE TABLE
postgres=# insert into tt(ttime) select now();
INSERT 0 1
postgres=# select * from tt;
id | ttime
----+---------------------------
| 2023-02-