mysql_xdevapi\TableUpdate
PHP Manual

TableUpdate::where

(No version information available, might only be in Git)

TableUpdate::whereSet search filter

说明

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

Set the search condition to filter.

参数

where_expr

The search condition to filter documents or records.

返回值

A TableUpdate object.

范例

Example #1 mysql_xdevapi\TableUpdate::where() example

<?php

$res 
$table->update()->set('doc''{"_id": "7", "name": "John", "job": "Smith"}')->where('_id = "7"')->execute();

?>

mysql_xdevapi\TableUpdate
PHP Manual