用这个方法要好些delete from u_tbl where datediff(n,lasttime,getdate()) < -2
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'getdate()) < -2' at line 1 这是什么怎么回事?
delete from u_tbl where lasttime<adddate(now(),interval 2 minute)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货