Home  >  Article  >  Backend Development  >  PDO, phppdo_PHP tutorial

PDO, phppdo_PHP tutorial

WBOY
WBOYOriginal
2016-07-11 10:36:20839browse

PDO, phppdo

1. Introduction

PDO (PHP Data Objects) defines a lightweight unified interface in PHP that can be used to access different type of database. 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>PDO 是一个C语言编写的扩展

PDO利用了PHP5的内部特性

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

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

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

PDO可用于事务操作

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

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

PDO可以执行游标滚动

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

3. API

http:<span>//</span><span>ca.php.net/manual/zh/book.pdo.php</span>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1139058.htmlTechArticlePDO, phppdo 1. Introduction PDO (PHP Data Objects) defines a lightweight unified interface in PHP , which can be used to access different types of databases. Note that you cannot rely on the PDO extension itself to execute tasks...
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