mysql_xdevapi\TableSelect
PHP Manual

TableSelect::where

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

TableSelect::whereSet select search condition

说明

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

Sets the search condition to filter.

参数

where_expr

Define the search condition to filter documents or records.

返回值

A TableSelect object.

范例

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

<?php

$res 
$table->select('name as nm','age as ag')->where('age > 34')->execute();

?>

mysql_xdevapi\TableSelect
PHP Manual