Home>Article>Backend Development> What does mysql_info mean in php
PHP mysql_info() function
Definition and usage (recommended learning:PHP video tutorial)
mysql_info() function returns the information of the latest query.
Returns information about the statement if successful, or false if failed.
Syntax
mysql_info(connection)
connection:Optional. Specifies the MySQL connection. If not specified, the previous connection is used.
Description
mysql_info() returns the details of the latest query made through the given connection. If connection is not specified, the last open connection is assumed.
mysql_info() Returns a string for all statements listed below:
INSERT INTO ... SELECT ...
INSERT INTO ... VALUES (...),(...),(...)...
LOAD DATA INFILE ...
ALTER TABLE
UPDATE
Returns false for any other statements. The format of the string depends on the statement given.
The above is the detailed content of What does mysql_info mean in php. For more information, please follow other related articles on the PHP Chinese website!