删除语法不是:delete from tbl_name where where_condition
为什么成为:delete tbl_name from tbl_name....了
删除语法不是:delete from tbl_name where where_condition
为什么成为:delete tbl_name from tbl_name....了
2014-10-20
单表删除的语法是
DELETE FROM tbl_name [WHERE where_definition] [ORDER BY ...] [LIMIT row_count]
多表的语法是
DELETE tbl_name[.*] [, tbl_name[.*] ...] FROM table_references [WHERE where_definition]
在你的代码快照里面,delete t1 from tdb_goods as t1 left join ( select ...)...这个是多表删除的语句,
所以这个地方是没有问题的。在视频播放页的源代码下载区有一个MySQL的学习手册,里面13.2.1节对DELETE语法有比较详细的说明,建议下载下来看看。
举报