Garry's Mod Wiki

sql.QueryRow

sql.QueryRow

table sql.QueryRow( string query, number row = 1 )

Description

Performs the query like sql.Query, but returns the first row found.

Basically equivalent to :

sql.Query( "*query* LIMIT 1;" )

Arguments

1 string query
The input query.
2 number row = 1
The row number. Say we receive back 5 rows, putting 3 as this argument will give us row #3.

Returns

1 table
The returned row.

Special Pages


Wikis

?

Render Time: 49ms

DB GetPage 30
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 7