PHP Class Bluz\Db\Query\Insert

Inheritance: extends AbstractBuilder, use trait Bluz\Db\Query\Traits\Set
Show file Open project: bluzphp/framework Class Usage Examples

Public Methods

Method Description
execute ( null $sequence = null ) : integer | string | array
getSql ( ) : string
insert ( string $table ) : Insert Turns the query being built into an insert query that inserts into a certain table

Method Details

execute() public method

public execute ( null $sequence = null ) : integer | string | array
$sequence null
return integer | string | array

getSql() public method

public getSql ( ) : string
return string

insert() public method

Example $ib = new InsertBuilder(); $ib ->insert('users') ->set('name', 'username') ->set('password', md5('password'));
public insert ( string $table ) : Insert
$table string The table into which the rows should be inserted
return Insert instance