delete from clicklog where time <= date_sub(curdate(),INTERVAL 15 day) limit 5000; /*删除15日前的数据*/
delete From clicklog where DATE(time) <= DATE(DATE_SUB(NOW(),INTERVAL 15 day)) limit 5000; /*删除15日前的数据*/
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询