mysql_xdevapi\TableDelete
PHP Manual

TableDelete::where

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

TableDelete::whereSet delete search condition

说明

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

Sets the search condition to filter.

参数

where_expr

Define the search condition to filter documents or records.

返回值

TableDelete object.

范例

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

<?php

$table
->delete()->orderby('age desc')->where('age < 20 and age > 12 and name != :name')->bind(['name' => 'Tierney'])->limit(2)->execute();

?>

mysql_xdevapi\TableDelete
PHP Manual