博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
order by
阅读量:4501 次
发布时间:2019-06-08

本文共 295 字,大约阅读时间需要 1 分钟。

4、order by(1)order by price         //默认升序排列(2)order by price desc //降序排列(3)order by price asc  //升序排列,与默认一样(4)order by rand()      //随机排列,效率不高    #按栏目号升序排列,每个栏目下的商品价格降序排列    select * from goods where cat_id !=2 order by cat_id,price desc;

 

转载于:https://www.cnblogs.com/dengyg200891/p/6012990.html

你可能感兴趣的文章
(二)scala构造器和伴生对象
查看>>
MVC中使用RemoteAttribute异步远程验证
查看>>
ROP----The Solution For Ret2shellcode
查看>>
6 个设计原则分别是什么?每种设计原则体现的设计模式是哪个?
查看>>
js判断字符串是否有重复
查看>>
mac 安装ant
查看>>
图层混合模式之正片叠底、滤色
查看>>
环信java后台发送消息时提示msg 应该为JSONObject 的坑
查看>>
Delphi中TStringList类常用属性方法详解
查看>>
删除centos7中自带有python2.7
查看>>
Cisco IOS Debug Command Reference Command E through H
查看>>
Python处理时间 time && datetime 模块
查看>>
sql 删除所有表
查看>>
SGU107-987654321 problem
查看>>
白帽子讲WEB安全 第五章 点击劫持(Click Jacking)
查看>>
Linq查询表达式
查看>>
Centos yum 安装 ipython
查看>>
探寻 webpack_bundle_analyzer 原理
查看>>
python list 插入元素
查看>>
python2 和 python3兼容写法
查看>>