sql.QueryValue

From GMod Wiki

Jump to: navigation, search
Function
Syntax sql.QueryValue( String query )
Where is this used?
Description:
Queries the SQLite database.
Returns: var Value
Part of Library: Sql
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Sql.QueryValue]Sql.QueryValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRetrieves the number of rows in table `ratings`
Used onNewerServer.png
Code
local iRatingCount = sql.QueryValue( "SELECT count(*) from ratings" )
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox