Other common functions of MySQL

Source: Internet
Author: User

Mysql_connect (): Connect to Database

mysql_select_db (): Select Table

mysql_query (): Execute SQL statement

Mysql_fetch_row (): Gets a row from the result set as an enumeration array
MYSQL_FETCH_ASSOC (): Gets a row from the result set as an associative array
Mysql_fetch_array (): Gets a row from the result set as an associative array, or as a numeric array, or both
Mysql_fetch_lengths (): Gets the length of each output in the result set
Mysql_field_name (): Gets the field name of the specified field in the result
Mysql_num_rows (): Gets the number of rows in the result set
Mysql_num_fields (): Gets the number of fields in the result set
Mysql_get_client_info (): Get MySQL Client Information
Mysql_get_host_info (): Get MySQL host information
Mysql_get_proto_info (): Get MySQL protocol information
Mysql_get_server_info (): Get MySQL Server information

Mysql_free_result (): Releasing the result set resource

Mysql_close (): Turn off MySQL connection

Other common functions of MySQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.