PHP查询语那种速度快

WBOY
Release: 2016-06-23 13:31:49
Original
1061 people have browsed it

foreach ($conn->query($showSql) as $row)

 $res = $conn->query($showSql);
 while ($row = $res->fetch() 


这两个查询效率那个比较快呢。。


回复讨论(解决方案)

速度一样,但后者使用的内存可能比前者小

后者较好。

后者较好。


你这话数的就有失公允了
如果是向模板提供数据的话,显然前者要比后者好


后者较好。


你这话数的就有失公允了
如果是向模板提供数据的话,显然前者要比后者好
是的,受教了。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!