sql.QueryRow

From Garry's Mod
Revision as of 03:38, 24 July 2016 by Zerf (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 sql.QueryRow( )

Contents

Description

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

Basically equivalent to
sql.Query("*query* LIMIT 1")

Arguments

string query

The input query

Arguments

number row=1

The row number. Say we receive back 5 rows, putting 3 as this argument will give us row #3.

Returns

table

The returned row.
Personal tools
Navigation