PHP Trait Bluz\Db\Query\Traits\From

Author: Anton Shevchuk
Show file Open project: bluzphp/framework

Public Methods

Method Description
from ( string $from, string $alias ) Set FROM

Method Details

from() public method

Create and add a query root corresponding to the table identified by the given alias, forming a cartesian product with any existing query roots $sb = new SelectBuilder(); $sb ->select('u.id') ->from('users', 'u')
public from ( string $from, string $alias )
$from string The table
$alias string The alias of the table