Expressions Do Not Work In SA-MP SQLite
#6

Make sure the table type is numeric I've experienced this problem before you could probably also do this but not recommended.

pawn Код:
db_query(database, "SELECT `STAT` FROM `TABLE` WHERE `STAT` > '1' ORDER BY (`STAT` * '1') DESC");
At any rate if your using SQLite then using SQLitei is for you here is my recommended read overs for using SQLite with SAMP. SQLitei has query error reporting which is very useful for debugging queries (only works on Windows) technically you don't need to use any native features of SQLitei either to take advantage of some of the features. I will recommend you open your db's with this native.

pawn Код:
DB:db_open_persistent(name[])
https://sampforum.blast.hk/showthread.php?tid=449536 - Konstantinos tutorial
https://sampforum.blast.hk/showthread.php?tid=303682 - SQLitei
Reply


Messages In This Thread
Expressions Do Not Work In SA-MP SQLite - by DrakeX - 31.05.2014, 22:45
Re: Expressions Do Not Work In SA-MP SQLite - by KingHual - 01.06.2014, 12:19
Re: Expressions Do Not Work In SA-MP SQLite - by DrakeX - 04.06.2014, 17:39
Re: Expressions Do Not Work In SA-MP SQLite - by Pottus - 04.06.2014, 18:33
Re: Expressions Do Not Work In SA-MP SQLite - by DrakeX - 04.06.2014, 18:36
Re: Expressions Do Not Work In SA-MP SQLite - by Pottus - 09.06.2014, 12:01
Re: Expressions Do Not Work In SA-MP SQLite - by DrakeX - 09.06.2014, 22:11

Forum Jump:


Users browsing this thread: 1 Guest(s)