High一下! --from coolshell
摘要: 首选先看看这条语句DELETE FROM tb_task t WHERE t.`groupname` = 'xxx' AND t.`create_time` > '2013-08-20 14:24:00' AND t.`filter` IS NULL 这句代码在sql里会报错, 由于 tb_task 取了别名 所以,需要在 delete 和from中间 加上别名 t.详见最后个答案 [http://stackoverflow.com/questions/4471277/mysql-delete-from-with-subquery-as-condition 阅读全文
posted @ 2013-08-20 17:13 庄周梦蝶,黄粱一枕 阅读(300) 评论(1) 推荐(0) 编辑