如何获取当天的记录 我用个的是mysql数据库,每天要将当天做完任务的记录全部清空,我数据库中存储的是unix_timestamp(),是当前系统秒数,我如何根据这个时间去删除属于当天的记录。或者哪位高手有更好的解决方法也可以列出来,我在此多谢各位大侠了! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delete from tablename where filed_date between unix_timestamp(concat(current_date(),' 00:00:00')) and unix_timestamp(concat(current_date(),' 23:59:59')) ls正解,但是也可以只判断日期delete from tablename where datediff(now(), filed_date) = 0 mysql效率问题 问个SQL语句.. 批量执行sql的问题 today 帮我改进下这个SQL的速度 求一个程序代码?~ 如何将access的.mdb文件,导入mysql?我已下载了myodbc Fedora20 下安装不了 mysql5.6 mysql 集群磁盘表过大 mysql不开放3306端口的备份方案 怎么在phpadmin里面修改mysql里面的用户密码啊? 不喜欢mysql的单引号咋办?
delete from tablename where filed_date between unix_timestamp(concat(current_date(),' 00:00:00')) and unix_timestamp(concat(current_date(),' 23:59:59'))
delete from tablename where datediff(now(), filed_date) = 0