Delete many rows from a table using id in Mysql

前端 未结 9 1886
遇见更好的自我
遇见更好的自我 2021-01-30 15:38

I am a Linux admin with only basic knowledge in Mysql Queries

I want to delete many table entries which are ip address from my table using id,

9条回答
  •  一整个雨季
    2021-01-30 16:24

    If you have some 'condition' in your data to figure out the 254 ids, you could use:

    delete from tablename
    where id in 
    (select id from tablename where )
    

    or simply:

    delete from tablename where 
    

    Simply hard coding the 254 values of id column would be very tough in any case.

提交回复
热议问题