Downloads
Documentation
Get Involved
Help
PHP 8.1.24 Released!
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
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
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
A extensão mysqli e conexões persistentes
Constantes pré-definidas
Notes
Resumo da Função de Extensão do MySQLi
mysqli
— The mysqli class
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
— Inicia uma transação
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
— Closes a previously opened database connection
mysqli::commit
— Salva a transação atual
mysqli::$connect_errno
— Returns the error code from last connect call
mysqli::$connect_error
— Returns a description of the last connection error
mysqli::__construct
— Abre uma nova conexão com o servidor MySQL
mysqli::debug
— Performs debugging operations
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
— Retorna uma lista de erros do último comando executado
mysqli->error
— Retorna uma string descrevendo o ultimo erro
mysqli::execute_query
— Prepara, vincula parâmetros e executa a instrução SQL
mysqli::$field_count
— Returns the number of columns for the most recent query
mysqli::get_charset
— Retorna um objeto de conjunto de caracteres
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
— Retorna estatísticas sobre a conexão do cliente
mysqli::$host_info
— Returns a string representing the type of connection used
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
— Initializes MySQLi and returns an object for use with mysqli_real_connect()
mysqli::$insert_id
— Returns the value generated for an AUTO_INCREMENT column by the last query
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
— Define opções
mysqli::ping
— Faz ping em uma conexão de servidor ou tenta reconectar se a conexão cair
mysqli::poll
— Poll connections
mysqli::prepare
— Prepara uma instrução SQL para execução
mysqli::query
— Executa uma consulta no banco de dados
mysqli::real_connect
— Abre uma conexão com um servidor mysql
mysqli::real_escape_string
— Escape caracteres especiais em uma string para uso em uma instrução SQL, levando em consideração o conjunto de caracteres atual da conexão
mysqli::real_query
— Executa uma consulta SQL
mysqli::reap_async_query
— Obtenha o resultado da consulta assíncrona
mysqli::refresh
— Atualiza
mysqli::release_savepoint
— Remove o ponto de salvamento nomeado do conjunto de pontos de salvamento da transação atual
mysqli::rollback
— Reverte a transação atual
mysqli::savepoint
— Define um ponto de salvamento de transação nomeado
mysqli::select_db
— Seleciona o banco de dados padrão para consultas de banco de dados
mysqli::set_charset
— Define o conjunto de caracteres do cliente
mysqli::$sqlstate
— Retorna o erro SQLSTATE da operação MySQL anterior
mysqli::ssl_set
— Usado para estabelecer conexões seguras usando SSL
mysqli::stat
— Obtém o status atual do sistema
mysqli::stmt_init
— Inicializa uma instrução e retorna um objeto para uso com mysqli_stmt_prepare
mysqli::store_result
— Transfere um conjunto de resultados da última consulta
mysqli::$thread_id
— Retorna o ID da thread para a conexão atual
mysqli::thread_safe
— Retorna se a segurança de thread é dada ou não
mysqli::use_result
— Iniciar uma recuperação de conjunto de resultados
mysqli::$warning_count
— Retorna o número de avisos da última consulta para o link fornecido
mysqli_stmt
— The mysqli_stmt class
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
— Adjusts the result pointer to an arbitrary row in the buffered result
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 statement
mysqli_stmt::fetch
— Fetch results from a prepared statement into the bound variables
mysqli_stmt::$field_count
— Returns the number of columns 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 as a mysqli_result object
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
— The mysqli_result class
mysqli_result::__construct
— Constructs a mysqli_result object
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_result::fetch_array
— Fetch the next row of a result set as an associative, a numeric array, or both
mysqli_result::fetch_assoc
— Obtem uma linha do conjunto de resultados como uma matriz associativa
mysqli_result::fetch_column
— Fetch a single column from the next row of a result set
mysqli_result::fetch_field_direct
— Fetch meta-data for a single field
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_result::fetch_object
— Fetch the next row of a result set as an object
mysqli_result::fetch_row
— Obtém uma linha do resultado como uma matriz numerada
mysqli_result::$field_count
— Gets the number of fields in the result set
mysqli_field_seek
— Move o ponteiro do resultado para um campo especificado
mysqli_result::free
— Frees the memory associated with a result
mysqli_result::getIterator
— Retrieve an external iterator
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 the result set
mysqli_driver
— A classe mysqli_driver
mysqli_driver::embedded_server_end
— Stop embedded server
mysqli_driver::embedded_server_start
— Initialize and start embedded server
mysqli_driver::$report_mode
— Define o modo de relatório de erros do mysqli
mysqli_warning
— A classe mysqli_warning
mysqli_warning::__construct
— Private constructor to disallow direct instantiation
mysqli_warning::next
— Busca o próximo aviso
mysqli_sql_exception
— A classe mysqli_sql_exception
mysqli_sql_exception::getSqlState
— Retorna o código de erro SQLSTATE
Apelidos e Funções obsoletas da Mysqli
mysqli_connect
— Sinônimo de mysqli::__construct
mysqli::escape_string
— Sinônimo de mysqli_real_escape_string
mysqli_execute
— Sinônimo de mysqli_stmt_execute
mysqli_get_client_stats
— Retorna as estatísticas do cliente por processo
mysqli_get_links_stats
— Retorna informações sobre links abertos e em cache
mysqli_report
— Sinônimo de mysqli_driver->report_mode
mysqli::set_opt
— Sinônimo de mysqli_options
Changelog
+
add a note
User Contributed Notes
There are no user contributed notes for this page.