? 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
— ��رձ������ݿ����ӵ��Զ������ύ����ģʽ
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 һ�����ӣ�����������Ӵ��ڶϿ�״̬����������
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
— ��ʼ��һ����䲢����һ������mysqli_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
— �����ӷ������ṹ�У����ô�������ȡ����
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
— ����/�ӻ�����ǿ���ڴӻ���ִ��һ����ѯ