Wrong Result
#7

Either convert the Column type to an integer type(this option is better in my opinion)
Or
Use this query
PHP код:
SELECT playerName,playerScore FROM playerdata where CONVERT(playerscoreSIGNED INTEGER) > 100 order by ORDER BY CONVERT(playerscoreSIGNED INTEGERdesc LIMIT 10 
You can avoid using `` around column names as long as it is not an MySQL reserved keyword or as long as the column name doesn't have any space in its name.
And also LIMIT 0,10 is same as LIMIT 10 so use LIMIT 10 as it will make query smaller.
Reply


Messages In This Thread
Wrong Result - by PowerF - 19.09.2015, 12:29
Re: Wrong Result - by xVIP3Rx - 19.09.2015, 16:09
Re: Wrong Result - by Vince - 19.09.2015, 16:44
Re: Wrong Result - by PowerF - 20.09.2015, 00:40
Re: Wrong Result - by xVIP3Rx - 20.09.2015, 03:51
Re: Wrong Result - by PowerF - 20.09.2015, 06:43
Re: Wrong Result - by BroZeus - 20.09.2015, 07:31

Forum Jump:


Users browsing this thread: 2 Guest(s)