Yii Framework official guide series 22-database usage: overview

Source: Internet
Author: User
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 )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.