• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help Sql Query

Critico

Sexy
Joined
Mar 25, 2010
Messages
370
Reaction score
179
why it does not work?

Code:
local query = db.getResult("SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 7845 ORDER BY cast(value as INTEGER) DESC;")
 
this depends on how this line is used in the lua script.

This is the real query:
Code:
SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 7845 ORDER BY cast(value as INTEGER) DESC;

This is LUA i think:
Code:
local query = db.getResult("   ")

Edited:

Code:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) DESC LIMIT 0, 30' at line 1
 
Last edited:
Back
Top