? Character sets
锟斤拷锟� ?
锟斤拷锟斤拷学院 www.cainiaoplay.com
PHP Manual
MySQL
MySQL锟斤拷强锟斤拷锟斤拷展
MySQL锟斤拷强锟斤拷锟斤拷展
锟斤拷锟�
Overview
Quick start guide
Dual procedural and object-oriented interface
Connections
Executing statements
Prepared Statements
Stored Procedures
Multiple Statements
API support for transactions
Metadata
锟斤拷装锟斤拷锟斤拷锟斤拷
锟斤拷锟斤拷
锟斤拷装
锟斤拷锟斤拷时锟斤拷锟斤拷
锟斤拷源锟斤拷锟斤拷
mysqli 锟斤拷展锟酵持久伙拷锟斤拷锟斤拷
预锟斤拷锟藉常锟斤拷
Notes
MySQLi 锟斤拷展锟侥癸拷锟杰革拷锟斤拷
MySQLi
— MySQLi锟斤拷
mysqli::$affected_rows
— Gets the number of affected rows in a previous MySQL operation
mysqli::autocommit
— 锟津开伙拷乇毡锟斤拷锟斤拷锟斤拷菘锟斤拷锟斤拷拥锟斤拷远锟斤拷锟斤拷锟斤拷峤伙拷锟斤拷锟侥J�
mysqli::begin_transaction
— Starts a transaction
mysqli::change_user
— Changes the user of the specified database connection
mysqli::character_set_name
— 锟斤拷锟截碉拷前锟斤拷锟捷匡拷锟斤拷锟接碉拷默锟斤拷锟街凤拷锟斤拷锟斤拷
mysqli::close
— 锟截憋拷锟斤拷前锟津开碉拷锟斤拷锟捷匡拷锟斤拷锟斤拷
mysqli::commit
— 锟结交一锟斤拷锟斤拷锟斤拷
mysqli::$connect_errno
— Returns the error code from last connect call
mysqli::$connect_error
— Returns a string description of the last connect error
mysqli::__construct
— Open a new connection to the MySQL server
mysqli::debug
— Performs debugging operations
mysqli::dump_debug_info
— 锟斤拷锟斤拷锟斤拷锟斤拷息锟斤拷锟斤拷锟斤拷锟街�
mysqli::errno
— 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷玫拇锟斤拷锟斤拷锟斤拷
mysqli::$error_list
— Returns a list of errors from the last command executed
mysqli::$error
— Returns a string description of the last error
mysqli::$field_count
— Returns the number of columns for the most recent query
mysqli::get_charset
— Returns a character set object
mysqli::$client_info
— 锟斤拷取 MySQL 锟酵伙拷锟斤拷锟斤拷息
mysqli_get_client_version
— 锟斤拷为一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷MySQL锟酵伙拷锟剿的版本
mysqli::get_connection_stats
— 锟斤拷锟截客伙拷锟斤拷锟斤拷锟接碉拷统锟斤拷锟斤拷锟斤拷
mysqli::$host_info
— 锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷使锟矫碉拷锟斤拷锟斤拷锟斤拷锟酵碉拷锟街凤拷锟斤拷
mysqli::$protocol_version
— 锟斤拷锟斤拷MySQL使锟矫碉拷协锟斤拷姹撅拷锟�
mysqli::$server_info
— 锟斤拷锟斤拷MySQL锟斤拷锟斤拷锟斤拷锟侥版本锟斤拷
mysqli::$server_version
— 锟斤拷为一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷MySQL锟斤拷锟斤拷锟斤拷锟侥版本
mysqli::get_warnings
— Get result of SHOW WARNINGS
mysqli::$info
— 锟斤拷锟斤拷锟斤拷锟街达拷械锟� SQL 锟斤拷锟斤拷锟斤拷息
mysqli::init
— 锟斤拷始锟斤拷 MySQLi 锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷源锟斤拷锟酵碉拷值锟斤拷锟斤拷锟街碉拷锟斤拷锟斤拷锟轿� mysqli_real_connect() 锟斤拷锟斤拷锟侥达拷锟斤拷锟斤拷锟�
mysqli::$insert_id
— 锟斤拷锟斤拷锟斤拷锟揭伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� ID
mysqli::kill
— 锟矫凤拷锟斤拷锟斤拷杀锟斤拷一锟斤拷 MySQL 锟竭筹拷
mysqli::more_results
— 锟斤拷锟斤拷锟斤拷锟斤拷锟窖拷锟斤拷欠锟斤拷胁锟窖拷锟斤拷
mysqli::multi_query
— 执锟叫诧拷询
mysqli::next_result
— 为锟斤拷取 multi_query 执锟斤拷之锟斤拷锟斤拷锟揭伙拷锟斤拷锟斤拷锟斤拷锟斤拷准锟斤拷
mysqli::options
— 锟斤拷锟斤拷选锟斤拷
mysqli::ping
— ping 一锟斤拷锟斤拷锟接o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷哟锟斤拷诙峡锟阶刺拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
mysqli::poll
— 锟斤拷询锟斤拷锟斤拷
mysqli::prepare
— 准锟斤拷执锟斤拷一锟斤拷 SQL 锟斤拷锟�
mysqli::query
— 锟斤拷锟斤拷锟捷匡拷执锟斤拷一锟轿诧拷询
mysqli::real_connect
— 锟斤拷锟斤拷一锟斤拷 MySQL 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
mysqli::real_escape_string
— 锟斤拷锟捷碉拷前锟斤拷锟接碉拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷 SQL 锟斤拷锟斤拷械锟斤拷锟斤拷锟斤拷址锟斤拷锟斤拷锟阶拷锟�
mysqli::real_query
— 执锟斤拷一锟斤拷mysql锟斤拷询
mysqli::reap_async_query
— 锟斤拷取锟届步锟斤拷询锟侥斤拷锟�
mysqli::refresh
— 刷锟斤拷
mysqli::release_savepoint
— 锟接碉拷前锟斤拷锟斤拷谋锟斤拷锟斤拷锟斤拷锟狡筹拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
mysqli::rollback
— 锟斤拷锟剿碉拷前锟斤拷锟斤拷
mysqli::rpl_query_type
— 锟斤拷锟斤拷 RPL 锟斤拷询锟斤拷锟斤拷
mysqli::savepoint
— 锟节碉拷前锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
mysqli::select_db
— 选锟斤拷锟斤拷锟斤拷锟斤拷锟捷匡拷锟窖拷锟侥拷锟斤拷锟斤拷菘锟�
mysqli::send_query
— 锟斤拷锟斤拷锟斤拷锟襟并凤拷锟截斤拷锟�
mysqli::set_charset
— 锟斤拷锟斤拷默锟斤拷锟街凤拷锟斤拷锟斤拷
mysqli::set_local_infile_default
— 取锟斤拷锟矫伙拷指锟斤拷锟侥回碉拷锟斤拷锟斤拷
mysqli::set_local_infile_handler
— 锟斤拷锟斤拷 LOAD DATA LOCAL INFILE 锟斤拷锟斤拷幕氐锟斤拷锟斤拷锟�
mysqli::$sqlstate
— 锟斤拷锟斤拷锟斤拷一锟斤拷 SQL 锟斤拷锟斤拷锟斤拷 SQLSTATE 锟斤拷锟斤拷锟斤拷息
mysqli::ssl_set
— 使锟斤拷 SSL 锟斤拷锟斤拷锟斤拷锟斤拷锟捷匡拷之锟斤拷陌锟饺拷锟斤拷锟�
mysqli::stat
— 锟斤拷取锟斤拷前系统状态锟斤拷息
mysqli::stmt_init
— 锟斤拷始锟斤拷一锟斤拷锟斤拷洳拷锟斤拷锟揭伙拷锟斤拷锟斤拷锟絤ysqli_stmt_prepare(锟斤拷锟斤拷)锟侥讹拷锟斤拷
mysqli::store_result
— 转锟斤拷锟斤拷一锟轿诧拷询锟斤拷锟截的斤拷锟斤拷锟�
mysqli::$thread_id
— 锟斤拷锟截碉拷前锟斤拷锟接碉拷锟竭筹拷 ID
mysqli::thread_safe
— 锟斤拷锟斤拷锟角凤拷锟斤拷锟竭程帮拷全锟斤拷
mysqli::use_result
— Initiate a result set retrieval
mysqli::$warning_count
— Returns the number of warnings from the last query for the given link
MySQLi_STMT
— MySQLi_STMT锟斤拷
mysqli_stmt::$affected_rows
— Returns the total number of rows changed, deleted, or inserted by the last executed statement
mysqli_stmt::attr_get
— Used to get the current value of a statement attribute
mysqli_stmt::attr_set
— Used to modify the behavior of a prepared statement
mysqli_stmt::bind_param
— Binds variables to a prepared statement as parameters
mysqli_stmt::bind_result
— Binds variables to a prepared statement for result storage
mysqli_stmt::close
— Closes a prepared statement
mysqli_stmt::__construct
— Constructs a new mysqli_stmt object
mysqli_stmt::data_seek
— Seeks to an arbitrary row in statement result set
mysqli_stmt::$errno
— Returns the error code for the most recent statement call
mysqli_stmt::$error_list
— Returns a list of errors from the last statement executed
mysqli_stmt::$error
— Returns a string description for last statement error
mysqli_stmt::execute
— Executes a prepared Query
mysqli_stmt::fetch
— Fetch results from a prepared statement into the bound variables
mysqli_stmt::$field_count
— Returns the number of field in the given statement
mysqli_stmt::free_result
— Frees stored result memory for the given statement handle
mysqli_stmt::get_result
— Gets a result set from a prepared statement
mysqli_stmt::get_warnings
— Get result of SHOW WARNINGS
mysqli_stmt::$insert_id
— Get the ID generated from the previous INSERT operation
mysqli_stmt::more_results
— Check if there are more query results from a multiple query
mysqli_stmt::next_result
— Reads the next result from a multiple query
mysqli_stmt::$num_rows
— Return the number of rows in statements result set
mysqli_stmt::$param_count
— Returns the number of parameter for the given statement
mysqli_stmt::prepare
— Prepare an SQL statement for execution
mysqli_stmt::reset
— Resets a prepared statement
mysqli_stmt::result_metadata
— Returns result set metadata from a prepared statement
mysqli_stmt::send_long_data
— Send data in blocks
mysqli_stmt::$sqlstate
— Returns SQLSTATE error from previous statement operation
mysqli_stmt::store_result
— Transfers a result set from a prepared statement
mysqli_result
— mysqli_result锟斤拷
mysqli_result::$current_field
— Get current field offset of a result pointer
mysqli_result::data_seek
— Adjusts the result pointer to an arbitrary row in the result
mysqli_result::fetch_all
— Fetches all result rows as an associative array, a numeric array, or both
mysqli_result::fetch_array
— Fetch a result row as an associative, a numeric array, or both
mysqli_result::fetch_assoc
— Fetch a result row as an associative array
mysqli_result::fetch_field_direct
— Fetch meta-data for a single field
mysqli_result::fetch_field
— Returns the next field in the result set
mysqli_result::fetch_fields
— Returns an array of objects representing the fields in a result set
mysqli_result::fetch_object
— Returns the current row of a result set as an object
mysqli_result::fetch_row
— Get a result row as an enumerated array
mysqli_result::$field_count
— Get the number of fields in a result
mysqli_result::field_seek
— Set result pointer to a specified field offset
mysqli_result::free
— Frees the memory associated with a result
mysqli_result::$lengths
— Returns the lengths of the columns of the current row in the result set
mysqli_result::$num_rows
— Gets the number of rows in a result
MySQLi_Driver
— MySQLi_Driver锟斤拷
mysqli_driver::embedded_server_end
— Stop embedded server
mysqli_driver::embedded_server_start
— Initialize and start embedded server
mysqli_driver::$report_mode
— Enables or disables internal report functions
MySQLi_Warning
— MySQLi_Warning锟斤拷
mysqli_warning::__construct
— The __construct purpose
mysqli_warning::next
— The next purpose
mysqli_sql_exception
— mysqli锟届常锟斤拷
锟斤拷锟斤拷锟酵癸拷时锟斤拷 Mysqli 锟斤拷锟斤拷
mysqli_bind_param
— mysqli_stmt_bind_param 锟侥憋拷锟斤拷
mysqli_bind_result
— mysqli_stmt_bind_result 锟侥憋拷锟斤拷
mysqli_client_encoding
— mysqli_character_set_name 锟侥憋拷锟斤拷
mysqli_connect
— 锟斤拷锟斤拷 mysqli::__construct
mysqli::disable_reads_from_master
— 锟斤拷锟斤拷锟接凤拷锟斤拷锟斤拷锟结构锟叫o拷锟斤拷锟矫达拷锟斤拷锟斤拷锟斤拷取锟斤拷锟斤拷
mysqli_disable_rpl_parse
— 锟斤拷锟斤拷RPL锟斤拷锟斤拷
mysqli_enable_reads_from_master
— 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷取
mysqli_enable_rpl_parse
— 锟斤拷锟斤拷RPL锟斤拷锟斤拷
mysqli_escape_string
— 锟斤拷锟斤拷 mysqli_real_escape_string
mysqli_execute
— mysqli_stmt_execute 锟侥憋拷锟斤拷
mysqli_fetch
— mysqli_stmt_fetch 锟侥憋拷锟斤拷锟斤拷
mysqli_get_cache_stats
— 锟斤拷锟截客伙拷锟斤拷Zval锟斤拷锟斤拷统锟斤拷锟斤拷息
mysqli_get_client_stats
— 锟斤拷锟截客伙拷锟剿斤拷锟斤拷统锟斤拷锟斤拷息
mysqli_get_links_stats
— 锟斤拷锟截打开和伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷息
mysqli_get_metadata
— mysqli_stmt_result_metadata 锟侥憋拷锟斤拷
mysqli_master_query
— 锟斤拷锟斤拷/锟接伙拷锟斤拷锟斤拷强锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷执锟斤拷一锟斤拷锟斤拷询
mysqli_param_count
— mysqli_stmt_param_count 锟侥憋拷锟斤拷
mysqli_report
— 锟斤拷锟斤拷 mysqli_driver->report_mode
mysqli_rpl_parse_enabled
— 锟斤拷锟斤拷欠锟斤拷锟斤拷锟� RPL 锟斤拷锟斤拷
mysqli_rpl_probe
— RPL 探锟斤拷
mysqli_send_long_data
— mysqli_stmt_send_long_data 锟侥憋拷锟斤拷
mysqli_set_opt
— mysqli_options 锟侥憋拷锟斤拷
mysqli_slave_query
— 锟斤拷锟斤拷/锟接伙拷锟斤拷锟斤拷强锟斤拷锟节从伙拷锟斤拷执锟斤拷一锟斤拷锟斤拷询