StupidBeauty
Read times:1068Posted at: - no title specified

转载 CURD 方法盘点: order 方法

thinkphp的ORM库中,可使用->order()方法来向查询语句中串接上“order by”子句。

http://www.thinkphp.cn/document/320.html

亮点

order 方法属于模型的连贯操作方法之一,用于对操作的结果排序。

用法

  1. 1. $Model -> where ( 'status=1' )-> order ( 'id desc' )-> limit ( 5 )-> select ();

复制代码

鲍蕾


Your opinions

Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands