• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

SQL command!

mahant

Banned User
Joined
May 15, 2010
Messages
111
Reaction score
1
Hey
I need sql command that will delete players, without 4 names. ANyone? Please help ;)


2.

Delete all player_items, without items with player id = x, y, z, a (samples)


I want to delete players and player_items without samples :)
 
Change the 'SampleX' parts.
PHP:
DELETE `players`, `player_items` FROM `players`, `player_items` WHERE `players`.`id` = `player_items`.`player_id` AND `players`.`name` NOT IN( 'Sample1', 'Sample2', 'Sample3', 'Sample4' );
 
Last edited:
Great job bro, thanks.

Can u tell me as fast command which will delete every player, which has level 14 and more?

##edit
It didn't delete player_items :d But it's not important now, i have to delete all players 14>
 
PHP:
DELETE `players`, `player_items` FROM `players`, `player_items` WHERE `players`.`id` = `player_items`.`player_id` AND `players`.`level` >= 14;
 
Back
Top