sql.LastError
From GMod Wiki
Revision as of 21:13, 2 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
sql.LastError( ) Where is this used? |
Description: | |
Returns last error made from a query. | |
Returns: | String |
Part of Library: | Sql |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Sql.LastError]Sql.LastError [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Try to select from a table that doesn't exist. |
---|---|
Used on | |
Code | sql.Query("SELECT * FROM nonexistingtable") print(sql.LastError()) |
Output | no such table: nonexistingtable |