TableUpdate::where

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

TableUpdate::where — 검색 필터 설정


설명

public mysql_xdevapi\TableUpdate::where(string $where_expr): mysql_xdevapi\TableUpdate

필터링할 검색 조건을 설정합니다.


매개변수

where_expr
문서 또는 레코드를 필터링하기 위한 검색 조건입니다.

반환 값

TableUpdate 개체입니다.


Examples

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

                  
<?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();

?>