mysql 多表关联删除

两张表关联删除:web DELETE a,b FROM table1 a INNER JOIN table2 b ON a.id = b.aid WHERE a.id = '1' //或者也能够 DELETE a,b FROM table1 a,table2 b WHERE a.id = b.aid AND a.id = '1' 三张表删除sql DELETE a,b,c FROM table1
相关文章
相关标签/搜索