(沒有版本資訊,可能只在 Git 中)
TableDelete::where — 設定刪除搜尋條件
where_expr
定義搜尋條件以篩選文件或記錄。
TableDelete 物件。
範例 #1 mysql_xdevapi\TableDelete::where() 範例
<?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();
?>