Large Objects (LOBs)
PDO::beginTransaction
PDO
php 手册
|
脚本学堂
|
脚本编程
|
网站编程
|
系统管理
|
服务器配置
|
数据库管理
|
Php教程
|
python教程
|
正则表达式
|
批处理脚本
|
Centos教程
|
Linux基础教程
The PDO class
简介
Represents a connection between PHP and a database server.
Class synopsis
PDO
PDO
{
__construct
(
string
$dsn
[,
string
$username
[,
string
$password
[,
array
$driver_options
]]] )
bool
beginTransaction
(
void
)
bool
commit
(
void
)
mixed
errorCode
(
void
)
array
errorInfo
(
void
)
int
exec
(
string
$statement
)
mixed
getAttribute
(
int
$attribute
)
array
getAvailableDrivers
(
void
)
string
lastInsertId
([
string
$name
=NULL
] )
PDOStatement
prepare
(
string
$statement
[,
array
$driver_options
=array()
] )
PDOStatement
query
(
string
$statement
)
string
quote
(
string
$string
[,
int
$parameter_type
=PDO::PARAM_STR
] )
bool
rollBack
(
void
)
bool
setAttribute
(
int
$attribute
,
mixed
$value
)
}
Table of Contents
PDO::beginTransaction
— Initiates a transaction
PDO::commit
— Commits a transaction
PDO::__construct
— Creates a PDO instance representing a connection to a database
PDO::errorCode
— Fetch the SQLSTATE associated with the last operation on the database handle
PDO::errorInfo
— Fetch extended error information associated with the last operation on the database handle
PDO::exec
— Execute an SQL statement and return the number of affected rows
PDO::getAttribute
— Retrieve a database connection attribute
PDO::getAvailableDrivers
— Return an array of available PDO drivers
PDO::lastInsertId
— Returns the ID of the last inserted row or sequence value
PDO::prepare
— Prepares a statement for execution and returns a statement object
PDO::query
— Executes an SQL statement, returning a result set as a PDOStatement object
PDO::quote
— Quotes a string for use in a query.
PDO::rollBack
— Rolls back a transaction
PDO::setAttribute
— Set an attribute
Large Objects (LOBs)
PDO::beginTransaction
PDO
php 手册
|
脚本学堂
|
脚本编程
|
网站编程
|
系统管理
|
服务器配置
|
数据库管理
|
Php教程
|
python教程
|
正则表达式
|
批处理脚本
|
Centos教程
|
Linux基础教程