我希望在5分钟前插入最后一个数据且具有特定状态,但我得到SQLException expected "., (, [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,, )";
,这是查询:
SELECT *
FROM Table
WHERE (CREATE_DATE >(systimestamp - (interval '5' minute)) )AND STATUS='in progress';
答案 0 :(得分:0)
所以答案是:
CREATE_DATE > DateADD(mi, -5, Current_TimeStamp)