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

grzesiek1925

New Member
Joined
Aug 21, 2009
Messages
81
Reaction score
2
Hi,
How do I add points premium for people who have more than 200 lvl?
This query is bad...
Code:
UPDATE `accounts` SET `premium_points` = premium_points + 200 WHERE `palyers`.`lvl` > '200'
 
SQL:
UPDATE `accounts` SET `premium_points` = `premium_points` + 200 WHERE (SELECT `account_id` FROM `players` WHERE `level` >= 200 AND `players`.`account_id` = `accounts`.`id` LIMIT 1) IN (`accounts`.`id`);
 
and how I wanted to give the first 20 points of the person I have give:
Code:
UPDATE `accounts` SET `premium_points` = `premium_points` + 200 WHERE (SELECT `account_id` FROM `players` WHERE `level` >= 200 AND `players`.`account_id` = `accounts`.`id` LIMIT 20) IN (`accounts`.`id`);
 
i dont understand much u, u need give 20 points or 200 points?
Give 20 points to level 200 >
SQL:
UPDATE `accounts` SET `premium_points` = `premium_points` + 20 WHERE (SELECT `account_id` FROM `players` WHERE `level` >= 200 AND `players`.`account_id` = `accounts`.`id` LIMIT 20) IN (`accounts`.`id`);
credits cyko~
 
i dont understand much u, u need give 20 points or 200 points?
Give 20 points to level 200 >
SQL:
UPDATE `accounts` SET `premium_points` = `premium_points` + 20 WHERE (SELECT `account_id` FROM `players` WHERE `level` >= 200 AND `players`.`account_id` = `accounts`.`id` LIMIT 20) IN (`accounts`.`id`);
credits cyko~
I know this is really old, but is there a limit for how stupid one can be?
 
Back
Top