1
PDO::fetch() LIMIT 1取等价于sql语句中的限制1?
上面的堆栈溢出帖子有一个最新的回答说是的,但是当我看到评论时,讨论带给我一定程度的好奇心。凡提及
"If you use LIMIT row_count with ORDER BY, MySQL ends the sorting as soon as
it has found the first row_count rows of the sorted result, rather than
sorting the entire result."
这是http://dev.mysql.com/doc/refman/5.0/en/limit-optimization.html
参考这仅仅是如果我们使用ORDER BY查询的情况下,而不是简单地应用于SELECT和读取行。
所以我的问题是在一个简单的SELECT和Fetch语句中获取等价极限1?