慎用PHP的fetchAll()方法

来源:互联网 发布:淘宝差评打电话 编辑:程序博客网 时间:2024/04/26 06:21
    $result = $adapter->query("SELECT * FROM tablename ...");    foreach ($result->fetchAll() as $row) {        //    }/****************************************************************/    while($row = $result->fetch()){       //          }

原创粉丝点击