• 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 query

Status
Not open for further replies.

Rury

Member
Joined
Nov 25, 2012
Messages
74
Reaction score
7
Hello, i need a Query SQL to delete items of players who do not have promotion (I don't know if this is possible)

Example: If the player have item ID 2160 and not have promotion (Table SQL Promotion = 0) Then Delete :)
 
SQL:
DELETE FROM `player_items` WHERE `itemtype` = 2160 AND `player_id` IN (SELECT `id` FROM `players` WHERE `promotion` = 0);
 
Status
Not open for further replies.
Back
Top