Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 20.08.2007, 08:24   #1
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

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
Drag is offline  
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  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 14:49.