【发布时间】:2011-02-28 22:11:35
【问题描述】:
在 mysql 中我可以做到这一点:
SELECT *
FROM table
WHERE auth_user.lastactivity > NOW() - 100
现在在 postgresql 中我正在使用这个查询:
SELECT *
FROM table
WHERE auth_user.lastactivity > CURRENT_TIMESTAMP - 100
但我收到此错误:
operator does not exist: timestamp with time zone - integer
我该如何解决?
【问题讨论】:
标签: sql datetime postgresql