問題描述
可能的重復:
php 中的 mysql 與 mysqli
mysql_* 函數
和 mysqli_* 函數
有什么區別?我們不應該使用 mysql_* 函數
背后是否有任何技術原因?
What is the difference between mysql_* functions
and mysqli_* functions
? Is there any technical reasons behind we shouldn't use mysql_* functions
?
推薦答案
i"代表改進".改進列表可以在這里找到.
The "i" stands for "improved". The list of improvements can be found in here.
MySQLi 是 MySQL 擴展的 OOP 版本.最后,MySQLi 和 MySQL 完成了同樣的事情:它們是從 PHP 與 MySQL 交互的擴展.很多人仍然使用原來的 MySQL 擴展而不是新的 MySQLi 擴展,因為 MySQLi 需要 MySQL 4.1.13+ 和 PHP 5.0.7+.
MySQLi is the OOP version of MySQL extension. In the end, MySQLi and MySQL accomplish the same thing: they are extension for interacting with MySQL from PHP. A lot of people still use the original MySQL extension instead of the new MySQLi extension because MySQLi requires MySQL 4.1.13+ and PHP 5.0.7+ .
MySQLi 支持一些舊的 MySQL 擴展不支持的東西.諸如準備好的報表、多個報表和交易之類的事情就在我的腦海中.
MySQLi supports some things that the old MySQL extension doesn't. Things like prepared statements, multiple statements, and transactions on top of my head.
這篇關于mysql & 的區別mysqli的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!