phprs\ezsql\rules\insert\InsertRule::insertInto PHP 메소드

insertInto() 공개 메소드

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

Usage Example

예제 #1
0
파일: Sql.php 프로젝트: caoym/phprs-restful
 /** 
  * 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