📜  php mysql 按超过一个月的时间戳删除 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:49.229000             🧑  作者: Mango

代码示例1
DELETE FROM on_search 
WHERE search_date < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 180 DAY))