Heim  >  Artikel  >  Backend-Entwicklung  >  现时开发主要用mysql对象,还是pdo,还是mysqli拓展库

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

WBOY
WBOYOriginal
2016-06-13 12:54:09744Durchsuche

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


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


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

所以 如果你觉得你的数据库一直不会更换...那么首选可能应该是mysqli
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn