src/Leevel/Database/Condition.php
public function distinct(bool $flag = true): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->options['distinct'] = $flag;

        return $this;
    }
public function distinct(bool $flag = true): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->options['distinct'] = $flag;

        return $this;
    }
创建一个 SELECT DISTINCT 查询.

@param bool $flag 指示是否是一个 SELECT DISTINCT 查询（默认 true）

@return $this