10bet网址
MySQL PHP API
下载本手册
PDF(美国Ltr)- 2.4 mb
PDF (A4)- 2.4 mb


5.32.5TableDelete: orderby

PHP文档组版权所有。10bet官方网站

  • TableDelete: orderby

    设置删除排序条件

描述

公共mysql_xdevapi \ TableDeletemysql_xdevapi \ TableDelete:: orderby字符串orderby_expr);

设置结果集的顺序选项。

参数

orderby_expr

排序定义。

返回值

TableDelete对象。

例子

例5.167mysql_xdevapi \ TableDelete:: orderBy例子

<?php $session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");$session = $session- getSchema("addressbook");$table = $schema-> getttable ("names");表- > delete() - >(“年龄=:时代”)- >绑定([“年龄”= > 42])——> orderby(名字DESC) - >限制(1)- >()执行;? >