Database Abstraction
A database abstraction layer is an API to provide a set of functions to deal with a multitude of databases in an implementation-independent way. By changing the back end of the database abstraction layer, you can easily switch from MySQL to Oracle, for example. Perl's DBI (DataBase Interface) is such a layer, and one of the most well-known features of the PHPLib is its database abstraction layer organized in the DB_Sql class.
Portability
For a professional Web application programmer, database abstraction can be useful and important. The base of every application is its data-model, a set of data structures for general-purpose usage, often contained within a database. While PHP supports a great number of databases, every database ...
Get Web Application Development with PHP 4.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.