sql/QueryValue

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Also menu state)
(More accurate.)
Line 2: Line 2:
 
|Name=QueryValue
 
|Name=QueryValue
 
|Parent=sql
 
|Parent=sql
|Description=Performs the query like {{LibraryFunction|sql|Query}}, but returns the first value found.
+
|Description=Performs the query like {{LibraryFunction|sql|QueryRow}}, but returns the first value found.
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No

Revision as of 18:37, 30 November 2017

 sql.QueryValue( )

Description

Performs the query like sql.QueryRow, but returns the first value found.

Arguments

string query

The input query.

Returns

any

The returned value; the engine automatically converts numerical output to Lua numbers.
Personal tools
Navigation