src/Leevel/Database/Select.php
public function find(?int $num = null, bool $flag = false)
    {
        if (null !== $num) {
            $this->condition->top($num);
        }

        return $this
            ->safeSql($flag)
            ->query();
    }
public function find(?int $num = null, bool $flag = false)
    {
        if (null !== $num) {
            $this->condition->top($num);
        }

        return $this
            ->safeSql($flag)
            ->query();
    }
返回最后几条记录.

@param int  $num
@param bool $flag 指示是否不做任何操作只返回 SQL

@return mixed