Scripting/Squirrel/Functions/mysql info

From Vice City Multiplayer
Revision as of 18:24, 30 January 2017 by Thijn (talk | contribs)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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