PDO 类

(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)

简介

代表 PHP 和数据库服务之间的一个连接

类摘要

PDO {
__construct ( string $dsn [, string $username [, string $password [, array $driver_options ]]] )
beginTransaction ( void ) : bool
commit ( void ) : bool
errorCode ( void ) : mixed
public errorInfo ( void ) : array
exec ( string $statement ) : int
getAttribute ( int $attribute ) : mixed
static getAvailableDrivers ( void ) : array
inTransaction ( void ) : bool
lastInsertId ([ string $name = NULL ] ) : string
public prepare ( string $statement [, array $driver_options = array() ] ) : PDOStatement
public query ( string $statement ) : PDOStatement
public quote ( string $string [, int $parameter_type = PDO::PARAM_STR ] ) : string
rollBack ( void ) : bool
setAttribute ( int $attribute , mixed $value ) : bool
}

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top