TableUpdate::execute

(사용 가능한 버전 정보가 없으며 Git에만 있을 수 있음)

TableUpdate::execute — 업데이트 쿼리 실행


설명

public mysql_xdevapi\TableUpdate::execute(): mysql_xdevapi\TableUpdate

업데이트 문을 실행합니다.


매개변수

이 함수에는 매개변수가 없습니다.


반환 값

TableUpdate 개체입니다.


Examples

예제 #1 mysql_xdevapi\TableUpdate::execute() 예제

                  
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$schema = $session->getSchema("addressbook");
$table  = $schema->getTable("names");

$res = $table->update()
  ->set('level', 3)
  ->where('age > 15 and age < 22')
  ->limit(4)
  ->orderby(['age asc','name desc'])
  ->execute();

?>