Garry's Mod Wiki

Revision Difference

sql.QueryRow#523626

<function name="QueryRow" parent="sql" type="libraryfunc"> <description> Performs the query like <page>sql.Query</page>, but returns the first row found.&lt;br&gt; Basically equivalent to Performs the query like <page>sql.Query</page>, but returns the first row found. ⤶ Basically equivalent to ``` sql.Query("*query* LIMIT 1") ``` </description> <realm>Shared and Menu</realm> <args> <arg name="query" type="string">The input query</arg> <arg name="row" type="number" default="1">The row number. Say we receive back 5 rows, putting 3 as this argument will give us row #3.</arg> </args> <rets> <ret name="" type="table">The returned row.</ret> </rets> </function>