Garry's Mod Wiki

sql.QueryRow

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

Description

Performs the sql.Query and returns the n'th row.

This function is equivalent to safely returning

sql.Query(query)[row]

Arguments

1 string query
The query as used in sql.Query
2 number row = 1
The row number.

Returns

1 table
The returned row.