phprs\ezsql\impls\InsertImpl::insertInto PHP Method

insertInto() public static method

public static insertInto ( $context, $table )
    public static function insertInto($context, $table)
    {
        $context->appendSql("INSERT INTO {$table}");
    }

Usage Example

Example #1
0
 /**
  * 
  * insertInto('table')->values([1,2]) => "INSERT INTO table VALUES(1,2)"
  * @param string $table
  * @return \phprs\ezsql\rules\insert\ValuesRule
  */
 public function insertInto($table)
 {
     InsertImpl::insertInto($this->context, $table);
     return new ValuesRule($this->context);
 }
InsertImpl