Bluz\Db\Query\Insert::insert PHP Method

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
    public function insert($table)
    {
        return $this->setFromQueryPart($table);
    }

Usage Example

Example #1
0
 /**
  * Create new query insert builder
  * @api
  * @param string $table
  * @return Query\Insert
  */
 public function insert($table)
 {
     $query = new Query\Insert();
     $query->insert($table);
     return $query;
 }