选择语言 :

 Driver_Database_Driver_Postgre_Result::total_count

统计当前查询返回数据

int Driver_Database_Driver_Postgre_Result::total_count( )
返回值
  • int
File: ./drivers/database/postgre/result.class.php
protected function total_count()
{
    $count = @pg_num_rows($this->_result);
    if (!$count>0)$count = 0;

    return $count;
}