SQL Delete Rows Based on Another Table

前端 未结 6 1406
别那么骄傲
别那么骄傲 2020-12-13 18:44

This is probably very easy, but it\'s Monday morning. I have two tables:

Table1:

Field        | Type             | Null | Key | Default | Extra
id           


        
6条回答
  •  难免孤独
    2020-12-13 18:52

    Something like this

    delete from table1 where group in (select group from table2)
    

提交回复
热议问题