• 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 that removes player to level 200 inactiv 30 days

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey i wanna remove some player in the db that have been inactv for 30 days and max lvl 200 But i dont want to remove the sampels how can i do this?
 
i have this but i dont want the sampels to be removed.
DELETE FROM players WHERE level < 1000 AND lastlogin < UNIX_TIMESTAMP() - 30*24*60*60
 
Code:
DELETE FROM players WHERE level < 200 [B]AND id NOT IN([COLOR="red"]2,3,4,5[/COLOR])[/B] AND lastlogin < UNIX_TIMESTAMP() - 30*24*60*60

You can replace 2,3,4,5 with the IDs of samples in database :p
 
Back
Top