如何延迟从时间戳列查询数据。?

How to query data from timestamp column with delay.?

我想要一个查询从 derby table 中获取数据,其中时间值距当前时间不到两小时的时间戳。以下查询给出错误

operator with a left operand type of 'TIMESTAMP' and a right operand type of 'INTEGER' is not supported.

查询:

select * from NEWS WHERE NEWS_DATE < current_timestamp-2

感谢任何帮助

答案在这里,

select *from NEWS where {fn TIMESTAMPDIFF( SQL_TSI_MINUTE, NEWS_DATE,current_timestamp)} <120