sql.QueryValue
From GMod Wiki
Function | |
Syntax |
sql.QueryValue( String query ) Where is this used? |
Description: | |
Queries the SQLite database. | |
Returns: | var Value |
Part of Library: | Sql |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Sql.QueryValue]Sql.QueryValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Retrieves the number of rows in table `ratings` |
---|---|
Used on | |
Code | local iRatingCount = sql.QueryValue( "SELECT count(*) from ratings" ) |
Output | N/A |