Home>Article>Backend Development> What does mysql_info mean in php

What does mysql_info mean in php

(*-*)浩
(*-*)浩 Original
2019-09-05 11:31:27 4228browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn