我有一个 mysql 语句,它只根据 id 获取一条记录。我想知道使用 mysql_fetch_row 或类似的东西是否比使用诸如 mysql_fetch_array 之类的东西更好,以便仅在数据库中获取一行。
使用 mysql_fetch_row 似乎是常识,但我只是想确定一下。
最佳答案
An important thing to note is that using
mysql_fetch_array()
is not significantly slower than usingmysql_fetch_row()
, while it provides a significant added value.
关于php - 使用 PHP 在 MySQL 中选择一行的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5656572/