array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mysql-xdevapi-tabledelete.where.php', 1 => 'TableDelete::where', ), 'up' => array ( 0 => 'class.mysql-xdevapi-tabledelete.php', 1 => 'mysql_xdevapi\\TableDelete', ), 'prev' => array ( 0 => 'mysql-xdevapi-tabledelete.orderby.php', 1 => 'TableDelete::orderby', ), 'next' => array ( 0 => 'class.mysql-xdevapi-tableinsert.php', 1 => 'mysql_xdevapi\\TableInsert', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysql_xdevapi/mysql_xdevapi/tabledelete/where.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
TableDelete::where — Set delete search condition
Sets the search condition to filter.
where_expr
Define the search condition to filter documents or records.
TableDelete object.
示例 #1 mysql_xdevapi\TableDelete::where() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$schema = $session->getSchema("addressbook");
$table = $schema->getTable("names");
$table->delete()
->where("id = :id")
->bind(['id' => 42])
->limit(1)
->execute();
?>