Yii provides powerful database programming support. The Yii Data Access Object (DAO) is built on the data object (PDO) extension of PHP, so that a single unified interface can access different database management systems (DBMS ). Use D of Yii...
Yii provides powerful database programming support. The Yii Data Access Object (DAO) is built on the data object (PDO) extension of PHP, so that a single unified interface can access different database management systems (DBMS ). Applications developed using DAO of Yii can easily switch to different database management systems without modifying the data access code. Yii's Active Record (AR) implements the widely used object relationship ORM ing (ORM) method to further simplify database programming. According to the conventions, a class represents a table, and an instance represents a row of data. Yii AR eliminates the repetitive tasks of most SQL statements used to process CRUD (create, read, update, and delete) data operations.
Although Yii DAO and AR can process almost all database-related tasks, you can still use your own database in Yii application. In fact, the Yii Framework is well designed to be used together with other third-party libraries.
Yii Framework database series of tutorials:
Yii Framework official guide series 23-database use: Data Access Object (DAO)
Yii Framework official guide series 24-database use: Query Builder
Yii Framework official guide series 25-use database: Active Record
Yii Framework official guide series 26-database use: Relational Active Record
Yii Framework official guide series 27-database use: database migration
The above is the Yii Framework official guide series 22-database usage: overview content. For more information, see PHP Chinese network (www.php1.cn )!