Garry's Mod Wiki

Revision Difference

sql.QueryRow#512883

<function name="QueryRow" parent="sql" type="libraryfunc">⤶ <description>⤶ Performs the query like <page>sql.Query</page>, but returns the first row found.&amp;lt;br&amp;gt;⤶ 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>⤶ ⤶