1. 程式人生 > >【學習筆錄】Mysql多表刪除語句

【學習筆錄】Mysql多表刪除語句

1.多表刪除的mysql語句

DELETE t_w_channel, t_w_channelext

FROM

t_w_channel

LEFT JOIN

t_w_channelext 

ON

t_w_channel.id = t_w_channelext.channelid

WHERE

t_w_channel.id=61;

(注:表名不能使用別名)