Is mysqli a procedural database, and pdo an object-oriented database?

Source: Internet
Author: User
Is mysqli a procedural database? is pdo an object-oriented database? are the two concepts a little confused? I don't know if so, or can both be mixed, in addition, PDO is object-oriented. why do many large projects use it instead of mysqli?


Reply to discussion (solution)

Mysqli provides process-oriented and object-oriented solutions.
The appearance of pdo is several years later than that of mysqli and does not reach the expected performance until php5.3.
Before that, do you have to ask someone to use mysql?

Mysqli is also object-oriented, but the pdo comes out late. Many websites have been completed before.

Mysqli is the Improvement of mysql to increase security and improve performance. there are both process-oriented functions and object-oriented functions.

PDO is a standard for database connection, because many databases, such as mysql oracle postgre access, provide unified APIs to reduce the development workload of programmers.



It was so painful that we didn't use PDO to migrate the database from postgre to mysql .......


Why is mysqli used? because PDO only supports PHP5 and later versions, and the efficiency is low in high concurrency, and the old implementation method is still in the buffer period. if you still use mysqli, you can consider changing the implementation method.

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.