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
相關文章
相關標籤/搜索