我使用以下sql语法从几个表中删除。结果是数据从表2-4中删除,但在表1中没有(没有错误)
DELETE table1, table2, table3, table4 FROM table2
JOIN table1 ON table1.id = table2.deviceid
JOIN table3 ON table3.deviceid = table2.deviceid
JOIN table4 ON table4.device_id = table2.deviceid
WHERE table2.deviceid = 1;
我做错了什么?