Home > Backend Development > PHP Problem > What does mysql_info mean in php

What does mysql_info mean in php

(*-*)浩
Release: 2023-02-23 16:50:01
Original
4333 people have browsed it

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)<br/>
Copy after login

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 ...<br/><br/>INSERT INTO ... VALUES (...),(...),(...)...<br/><br/>LOAD DATA INFILE ...<br/><br/>ALTER TABLE<br/><br/>UPDATE<br/>
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template