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,
Use IN Clause
IN
DELETE from tablename where id IN (1,2);
OR you can merge the use of BETWEEN and NOT IN to decrease the numbers you have to mention.
BETWEEN
NOT IN
DELETE from tablename where (id BETWEEN 1 AND 255) AND (id NOT IN (254));