phprs\ezsql\rules\insert\InsertRule::insertInto PHP Method

insertInto() public method

insertInto('table')->values([1,2]) => "INSERT INTO table VALUES(1,2)"
public insertInto ( string $table ) : ValuesRule
$table string
return ValuesRule
    public function insertInto($table)
    {
        InsertImpl::insertInto($this->context, $table);
        return new ValuesRule($this->context);
    }

Usage Example

Example #1
0
 /** 
  * insertInto('table') => "INSERT INTO table"
  * 
  * @param string $table
  * @return \phprs\ezsql\rules\insert\ValuesRule
  */
 public static function insertInto($table)
 {
     $obj = new InsertRule(new SqlConetxt());
     return $obj->insertInto($table);
 }
InsertRule