SQL 删除三天前的记录

delete from table  where id=%d or to_days(now())-to_days(createdate)>=3

你可能感兴趣的:(SQL 删除三天前的记录)