mysql delete join

delete poster 
from theatre_poster poster
left join theatre a on theatre_id = a.id
where a.id is null

猜你喜欢

转载自www.cnblogs.com/qianjinyan/p/12581367.html