sql Delete的Where套用select
方式一:
delete from table where id in (select user_id from table2)
方式二:
delete a from a,(select id from XXXX where XXX) b where a.id = b.id
本文来自博客园,作者:꧁执笔小白꧂,转载请注明原文链接:https://www.cnblogs.com/qq2806933146xiaobai/p/15396381.html