My mysql command is simple:
DELETE
FROM ts_template_size, ts_thumbnail
I just want delete the two table at the same time. But when I execute it, the client tell me have an sytax error.
If I use chnage the from table to single one, delete in twice, both could success.
However, I check the offical document: http://dev.mysql.com/doc/refman/5.7/en/delete.html the syntax is bellow:
DELETE [LOW_PRIORITY] [QUICK] [IGNORE]
FROM tbl_name[.*] [, tbl_name[.*]] ...
USING table_references
[WHERE where_condition]
what is the USING table_references
mean? I have to join them together?