如何从表中删除时间戳字段<现在() - 44分钟?
答案 0 :(得分:11)
DELETE FROM table
WHERE timestamp_field < current_timestamp - interval '44' minute;
答案 1 :(得分:1)
在MySQL中:
DELETE FROM TABLE1 WHERE timestamp < DATE_ADD(CURRENT_TIMESTAMP, INTERVAL -44 MINUTE)
修改您选择的数据库。