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

 

posted @ 2021-10-12 09:45  ꧁执笔小白꧂  阅读(1324)  评论(0编辑  收藏  举报