Postgresql PostgresSQL:间隔字段值超出范围
我是PostgresSQL的新手,在那里我运行一个查询,在那里我查找上周内的活动,但它抛出了超出范围的错误 Postgres SQL:Postgresql PostgresSQL:间隔字段值超出范围,postgresql,Postgresql,我是PostgresSQL的新手,在那里我运行一个查询,在那里我查找上周内的活动,但它抛出了超出范围的错误 Postgres SQL: select * from myTable where order_time > '2018-12-04 18:22:26' - INTERVAL '7 day' 错误: IntervalFieldOverflow: ERROR: interval field value out of range: "2018-12-04 18:22:26" 版本:
select *
from myTable
where order_time > '2018-12-04 18:22:26' - INTERVAL '7 day'
错误:
IntervalFieldOverflow: ERROR: interval field value out of range: "2018-12-04 18:22:26"
版本:Postgressql9.6
我试图通过在线搜索解决问题,但没有得到太多帮助。尝试转换时间戳文字字符串:
select *
from myTable
where order_time > '2018-12-04 18:22:26'::timestamp - interval '7 day';