Difference between mysql amp; mysqli(mysql amp; 的区别mysqli)
问题描述
可能的重复:
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:mysql & 的区别mysqli
基础教程推荐
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
