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
(Created page with "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 == Sy...")
 
No edit summary
Line 16: Line 16:
  }
  }
}</pre>
}</pre>
== Related Functions ==
{{Scripting/Squirrel/Functions/Mysql}}
[[Category:Scripting/Squirrel/Functions/Mysql_Functions]]

Revision as of 18:24, 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

Template:Scripting/Squirrel/Functions/Mysql