BLuE_SySTEM Posted April 28, 2009 Share Posted April 28, 2009 Hey everyone Is it possible, using executeSQLSelect, to get a selection ordered by points column ASC or DESC? I want to get top 10 players with most points table executeSQLSelect ( string tableName, string fields, [ string conditions ], [ int limit ] ) Looking at the syntax i guess it isn't but doens't makes sense order is also a selection field. If it isn't possible is there any easy way to do this instead of selecting all players and then see the ones with more points? Link to comment
robhol Posted April 29, 2009 Share Posted April 29, 2009 I'm not sure if you can put that query part "ORDER BY x DESC" in one of the parameters, (I actually think not..) but if you use 1.0 you can just use executeSQLQuery.. Link to comment
BLuE_SySTEM Posted April 29, 2009 Author Share Posted April 29, 2009 Yeah i guess we can't, i tried all the ways I'll wait for 1.0 release. Thanks. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now