作者:chenxq
发表时间:
2005-01-27 20:38:16
更新时间:
2005-02-18 22:12:46
浏览:1512次
主题:电脑技术
评论:0篇 引用:1次 地址:219.224.144.131
|
何谓PEAR
PEAR - PHP Extension and Application Repository
何谓PEAR::DB
Database Abstraction Layer
A unified API for accessing SQL databases
Description
DB is a database abstraction layer providing:
* an OO-style query API
* portability features that make programs written for one DBMS work with other DBMS's
* a DSN (data source name) format for specifying database servers
* prepare/execute (bind) emulation for databases that don't support it natively
* a result object for each query response
* portable error codes
* sequence emulation
* sequential and non-sequential row fetching as well as bulk fetching
* formats fetched rows as associative arrays, ordered arrays or objects
* row limit support
* transactions support
* table information interface
* DocBook and PHPDoc API documentation
DB layers itself on top of PHP's existing database
extensions. The currently supported extensions are:
dbase, fbsql, interbase, informix, msql, mssql, mysql,
mysqli, oci8, odbc, pgsql, sqlite and sybase.
DB is compatible with both PHP 4 and PHP 5.
useful links:
homepage
http://pear.php.net/package/DB
End-user documentation
http://pear.php.net/manual/en/package.database.db.php
|