Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 41ms

Session 0
DB GetPage 5
Generate Html 11
SaveChanges 10
Render Body 0
Render Sidebar 12