View Single Post
Old 20.08.2007, 08:46   #2
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by Drag View Post
Ubber easy way via sql:
DELETE FROM user_item WHERE (item_type>'3926' AND item_type<'3935') OR item_type='4218'

Hahah adriahu was first xD
Well... using [ ' ] with int values is wrong!

Something like this would be better, adriahu is a good choice too but this is more easy and more logical, using [ ' ] will take the values as string and not as integers... so... thats wrong...

Code:
DELETE FROM user_item
WHERE item_type BETWEEN 3926 AND 3935
OR item_type = 4218
FidoW is offline