Scripting/Squirrel/Functions/mysql info: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
No edit summary
 
Line 18: Line 18:


== Related Functions ==
== Related Functions ==
{{Scripting/Squirrel/Functions/Mysql}}
{{Scripting/Squirrel/Functions/MySQL Functions}}
[[Category:Scripting/Squirrel/Functions/Mysql_Functions]]
[[Category:Scripting/Squirrel/Functions/Mysql_Functions]]

Latest revision as of 18:28, 30 January 2017

Retrieves a string providing information about the most recently executed statement. For more information, visit: http://dev.mysql.com/doc/refman/5.0/en/mysql-info.html

Syntax

mysql_info( handler )

Arguments

  • MySQLHandler handler - A working MySQL link/connection.

Example

function onScriptLoad( )
{
 local conn = mysql_connect("localhost", "test", "test", "test");
 if ( conn ) {
  mysql_query(conn, "UPDATE benchmark SET testFloat = 123.45 WHERE testInt = 0");
  print( mysql_info(conn) );
 }
}

Related Functions