现时开发主要用mysql对象,还是pdo,还是mysqli拓展库

WBOY
Release: 2016-06-13 12:54:09
Original
752 people have browsed it

现在开发主要用mysql对象,还是pdo,还是mysqli拓展库
说下各自优缺点。非常感谢!


------解决方案--------------------
mysql函数组是基于 mysql4 写成
mysqli函数组是基于 mysql5 写成,由于利用了 mysql5 的新特征,所以性能要强于mysql函数组
pdo 包容了常见数据库,更换数据库系统只需更换 dsn 串。便于系统的迁移


------解决方案--------------------
mysql 在用 mysqli 也在用 pdo 刚在用....

所以 如果你觉得你的数据库一直不会更换...那么首选可能应该是mysqli
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!