mysql一條語句刪除多表(多表刪除)

語句1:delete from sheng,city,dian using sheng,city,dian where sheng.sid=2 and city.sid=sheng.sid and dian.cid=city.cid 注:這條語句執行時,要保證三個表中必須有知足語句中要求的數據是才能夠刪除,不然數據不能刪除,但不提示錯誤,由於語法正確 語句2:DELETE a,b from a L
相關文章
相關標籤/搜索