phprs\ezsql\rules\replace\ReplaceIntoRule::replaceInto PHP Method

replaceInto() public method

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

Usage Example

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