Quote:
|
Originally Posted by karnyge
delete from cq_monstertype where id >= 3042 and id <= 3042;
|
Delete from Table where id is equal or greater then number AND id is equal or Smaller then Number
so you try to delete everything that is above that number AND everything that is below that number at the SAME time ??
so if it is number 1 then it is not above 2 , if it is 3 then it is now below 2 so it give big errors
if you like to delete that number only , then just use this
Code:
delete FROM 'cq_monstertype' WHERE 'id' LIKE '3042'
if you want to delete everything above and below
then use this code in 2 Querry's
Code:
delete FROM 'cq_monstertype' WHERE 'id' > '3042'
delete FROM 'cq_monstertype' WHERE 'id' < '3042'
you can not run both codes at the same time , as AND means that it contains x and x at the same time
like
Code:
delete FROM 'cq_monstertype' WHERE 'id' LIKE '3042' AND 'user' LIKE '%PM%'
the above code will delete id 3042 if it match user a username with pm in it on that row
Greetings From PowerChaos