How do I delete multiple rows with different IDs?

前端 未结 4 638
粉色の甜心
粉色の甜心 2020-12-13 13:09

I want to do something like this:

DELETE FROM table WHERE id IN (SELECT ....)

How can I do that?

4条回答
  •  醉梦人生
    2020-12-13 13:53

    Delete from BA_CITY_MASTER where CITY_NAME in (select CITY_NAME from BA_CITY_MASTER group by CITY_NAME having count(CITY_NAME)>1);
    

提交回复
热议问题