src/db/BuildSql.php
public function limit($limit = 0, $pageSize = '')
    {
        $this->bulid['limit'] = ' LIMIT ' . $limit;
        if ($pageSize) {
            $this->bulid['limit'] = ' LIMIT ' . $limit . ',' . $pageSize;
        }

        $this->options['limit'] = ['limit' => $limit, 'pageSize' => $pageSize];

        return $this;
    }
public function limit($limit = 0, $pageSize = '')
    {
        $this->bulid['limit'] = ' LIMIT ' . $limit;
        if ($pageSize) {
            $this->bulid['limit'] = ' LIMIT ' . $limit . ',' . $pageSize;
        }

        $this->options['limit'] = ['limit' => $limit, 'pageSize' => $pageSize];

        return $this;
    }
查询数量
@date   2017-03-19T16:18:13+0800
@author ChenMingjiang
@param  [type]                   $limit [description]
@return [type]                          [description]