DbSql::Count PHP Method

Count() public method

构造计数语句
public Count ( string $table, string $count, string $where = null, null $option = null ) : string
$table string
$count string
$where string
$option null
return string 返回构造的语句
    public function Count($table, $count, $where = null, $option = null)
    {
        if (!is_array($option)) {
            $option = array('select2count' => true);
        }
        return $this->Select($table, $count, $where, null, null, $option);
    }