选择语言 :

 Driver_Database_Driver_Postgre_Result::total_count

统计当前查询返回数据

int Driver_Database_Driver_Postgre_Result::total_count( )
返回值
  • int
File: ./drivers/database/postgre/result.class.php
23
24
25
26
27
28
29
protected function total_count()
{
    $count = @pg_num_rows($this->_result);
    if (!$count>0)$count = 0;
 
    return $count;
}