Table1.
id | name
1 | Test
Table2.
id | post | table1_id
1 | mypst| 1
我需要从Table1
where中删除一行以及table1_id=(1 is id from )中的id=1
所有行。Table2
Table1
我正在尝试这个:
DELETE FROM Table1
INNER JOIN Table2 ON Table2.table1_id = Table1.id AND Table1.id = 1
但我收到错误:
关键字“INNER”附近的语法不正确。
怎么了?