Bluz\Db\Query\Select::select PHP Method

select() public method

Example $sb = new Select(); $sb ->select('u.id', 'p.id') ->from('users', 'u') ->leftJoin('u', 'phone', 'p', 'u.id = p.user_id');
public select ( variadic $select ) : Select
$select variadic the selection expressions
return Select instance
    public function select(...$select)
    {
        return $this->addQueryPart('select', $select, false);
    }

Usage Example

示例#1
0
 public function advancedSelect()
 {
     $self = static::getInstance();
     $select = new Query\Select();
     $select->select('d.id , d.title, d.description, d.cost, c.name AS category')->from('dishes', 'd')->join('d', 'categories', 'c', 'd.categoryId = c.id')->setFetchType($self->rowClass);
     return $select;
 }
All Usage Examples Of Bluz\Db\Query\Select::select