Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Errors
Exceptions
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Introdução »
« Character sets
Manual do PHP
Referência das Funções
Extensões de Banco de Dados
Vendor Specific Database Extensions
MySQL
Change language:
English
Brazilian Portuguese
Chinese (Simplified)
French
German
Japanese
Romanian
Russian
Spanish
Turkish
Other
Submit a Pull Request
Report a Bug
Extensão MySQL Melhorada
Introdução
Overview
Quick start guide
Dual procedural and object-oriented interface
Connections
Executing statements
Prepared Statements
Stored Procedures
Multiple Statements
API support for transactions
Metadata
Instalação/Configuração
Dependências
Instalação
Configurações em Execução
Tipos de Recurso
The mysqli Extension and Persistent Connections
Constantes pré-definidas
Notes
The MySQLi Extension Function Summary
MySQLi
— A classe MySQLi
mysqli->affected_rows
— Retorna o número de linhas afetadas pela operação MySQL anterior
mysqli::autocommit
— Ativa ou desativa o salvar automaticamente as modificações no banco de dados
mysqli::begin_transaction
— Starts a transaction
mysqli::change_user
— Modifica o usuário para a conexão com o banco de dados especificada
mysqli::character_set_name
— Retorna o conjunto de caracteres padrão para a conexão com o banco de dados
mysqli_close
— Fecha uma conexão aberta anteriormente com o banco de dados
mysqli::commit
— Salva a transação atual
mysqli_connect_errno
— Retorna o código de erro da ultima chamada a função connect
mysqli_connect_error
— Retorna uma string descrevendo o ultimo erro da função connect
mysqli::__construct
— Open a new connection to the MySQL server
mysqli_debug
— Realiza operações de debug
mysqli::dump_debug_info
— Descarrega informação de debug no log
mysqli->errno
— Retorna o código de erro para a chamada de função mais recente
mysqli::$error_list
— Returns a list of errors from the last command executed
mysqli->error
— Retorna uma string descrevendo o ultimo erro
mysqli_field_count
— Retorna o número de colunas para a consulta mais recente
mysqli::get_charset
— Returns a character set object
mysqli::get_client_info
— Retorna a versão do cliente MySQL como uma string
mysqli::get_client_version
— Obtém informação sobre o cliente MySQL
mysqli::get_connection_stats
— Returns statistics about the client connection
mysqli_get_host_info
— Retorna uma string representando o tipo da conexão usada
mysqli->protocol_version
— Retorna a versão do protocolo MySQL usada
mysqli->server_info
— Retorna a versão do servidor MySQL
mysqli->server_version
— Retorna a versão do servidor MySQL como um integer
mysqli::get_warnings
— Get result of SHOW WARNINGS
mysqli_info
— Recupera informação sobre a mais recente query executada
mysqli_init
— Inicializa a MySQLi e retorna um resource para usar com mysqli_real_connect()
mysqli_insert_id
— Retorna o id gerado automaticamente na última consulta
mysqli::kill
— Solicita ao servidor o encerramento de um thread do MySQL
mysqli::more_results
— Verifica se há mais algum resultado de uma multi query
mysqli::multi_query
— Performs a query on the database
mysqli::next_result
— Prepara o próximo resultado de multi_query
mysqli::options
— Set options
mysqli::ping
— Pings a server connection, or tries to reconnect if the connection has gone down
mysqli::poll
— Poll connections
mysqli::prepare
— Prepares an SQL statement for execution
mysqli::query
— Performs a query on the database
mysqli::real_connect
— Opens a connection to a mysql server
mysqli::real_escape_string
— Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection
mysqli::real_query
— Execute an SQL query
mysqli::reap_async_query
— Get result from async query
mysqli::refresh
— Refreshes
mysqli::release_savepoint
— Removes the named savepoint from the set of savepoints of the current transaction
mysqli::rollback
— Rolls back current transaction
mysqli::savepoint
— Set a named transaction savepoint
mysqli::select_db
— Selects the default database for database queries
mysqli::set_charset
— Sets the default client character set
mysqli::$sqlstate
— Returns the SQLSTATE error from previous MySQL operation
mysqli::ssl_set
— Used for establishing secure connections using SSL
mysqli::stat
— Gets the current system status
mysqli::stmt_init
— Initializes a statement and returns an object for use with mysqli_stmt_prepare
mysqli::store_result
— Transfers a result set from the last query
mysqli::$thread_id
— Returns the thread ID for the current connection
mysqli::thread_safe
— Returns whether thread safety is given or not
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
— A classe MySQLi_STMT
mysqli_stmt::$affected_rows
— Returns the total number of rows changed, deleted, inserted, or matched by the last statement executed
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
— Passa variáveis para um preparado comando como parâmetros
mysqli_stmt::bind_result
— Passa variáveis para um preparado comando por resultado armazenado
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
— Executa uma preparada query
mysqli_stmt::fetch
— Obtém resultados de um preparado comando e os coloca nas determinadas variáveis
mysqli_stmt::$field_count
— Returns the number of columns in the given statement
mysqli_free_result
— Libera a memória associada ao resultado
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
— Returns the number of rows fetched from the server
mysqli_stmt::$param_count
— Returns the number of parameters for the given statement
mysqli_stmt::prepare
— Prepara uma declaração SQL para execução
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
— Stores a result set in an internal buffer
MySQLi_Result
— A classe MySQLi_Result
mysqli_result::$current_field
— Get current field offset of a result pointer
mysqli_result::data_seek
— Ajusta o ponteiro do resultado para uma linha arbritaria no conjunto de resutados
mysqli_result::fetch_all
— Fetch all result rows as an associative array, a numeric array, or both
mysqli_fetch_array
— Obtem uma linha do resultado como uma matriz associativa, numérica, ou ambas
mysqli_result::fetch_assoc
— Obtem uma linha do conjunto de resultados como uma matriz associativa
mysqli_fetch_field_direct
— Obtem meta dados para um único campo
mysqli_result::fetch_field
— Retorna o próximo campo no conjunto de resultados
mysqli_result::fetch_fields
— Retorna uma matriz de objetos representando os campos em um conjunto de resultados
mysqli_fetch_object
— Retorna a linha atual do conjunto de resultados como um objeto
mysqli_result::fetch_row
— Obtém uma linha do resultado como uma matriz numerada
mysqli_result::$field_count
— Get the number of fields in a result
mysqli_field_seek
— Move o ponteiro do resultado para um campo especificado
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
— The mysqli_driver class
mysqli_driver::embedded_server_end
— Stop embedded server
mysqli_driver::embedded_server_start
— Initialize and start embedded server
mysqli_driver::$report_mode
— Sets mysqli error reporting mode
mysqli_warning
— The mysqli_warning class
mysqli_warning::next
— Fetch next warning
mysqli_sql_exception
— The mysqli_sql_exception class
Apelidos e Funções obsoletas da Mysqli
mysqli_connect
— Sinônimo de mysqli::__construct
mysqli_escape_string
— Apelido para mysqli_real_escape_string
mysqli_execute
— Apelido para mysqli_stmt_execute
mysqli_get_client_stats
— Returns client per-process statistics
mysqli_get_links_stats
— Return information about open and cached links
mysqli_report
— Sinônimo de mysqli_driver->report_mode
mysqli::set_opt
— Alias of mysqli_options
Changelog
add a note
User Contributed Notes
There are no user contributed notes for this page.