(沒有版本資訊,可能只在 Git 中)
TableDelete::orderby — 設定刪除排序條件
設定結果集的排序選項。
orderby_expr
排序定義。
一個 TableDelete 物件。
範例 #1 mysql_xdevapi\TableDelete::orderBy() 範例
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$schema = $session->getSchema("addressbook");
$table = $schema->getTable("names");
$table->delete()
->where("age = :age")
->bind(['age' => 42])
->orderby("name DESC")
->limit(1)
->execute();
?>