Jump to content

Get highest value in database?


Maurize

Recommended Posts

nope, seems like the column rowid isn't present..

// found solution for my own.

addCommandHandler( "call", 
function( player, cmd ) 
    local db = executeSQLQuery( "SELECT rowid, * FROM db_data", player ) 
    outputChatBox( "Das Ziel trägt die ID: "..db[1]["rowid"], player, 255, 255, 0 ) 
end ) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...