Newscoop\Doctrine\AdoDbAdapter::getOne PHP 메소드

getOne() 공개 메소드

Execute sql query and returns the value of first column of the first row.
public getOne ( string $sql, array $params = [] ) : mixed
$sql string
$params array
리턴 mixed
    public function getOne($sql, array $params = array())
    {
        return $this->connection->fetchColumn($sql, $params);
    }