Home  >  Article  >  php教程  >  PDO

PDO

WBOY
WBOYOriginal
2016-07-06 13:28:181583browse

1. Introduction

PDO (PHP Data Objects) defines a lightweight unified interface in PHP that can be used to access different types of databases. Note that you cannot rely on the PDO extension itself to perform any database functions. You must use a database-specific PDO driver to access the database server.

2. PDO characteristics

<span style="color: #000000">PDO 是一个C语言编写的扩展

PDO利用了PHP5的内部特性

PDO从结果集读取数据时使用了缓冲

PDO提供了通用的DB特性作为基础

PDO能够访问针对特定数据库的函数

PDO可用于事务操作

PDO可处理数据库中的LOBS(大对象)

PDO可以带限制性参数的预编译SQL语句和执行SQL语句

PDO可以执行游标滚动

PDO可以访问SQLSTATE错误代码且有灵活的错误处理机制</span>

3. API

http:<span style="color: #008000">//</span><span style="color: #008000">ca.php.net/manual/zh/book.pdo.php</span>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn