输入banner图图片脚本导航/分类

MySQL排序:SELECT ORDER BY

SELECT 和ORDER BY结合进行排序:

products表例如以下:

技术分享


a 按产品名称列进行排序:

技术分享


b 按多个列进行排序,默认排序顺序为升序:

技术分享


c 指定排序方向,即指定为降序:

技术分享


d 对多个列进行排序,先按产品价格降序排列,再按产品名称排列

技术分享


e 找出某一列最高值或者最低值

技术分享


MySQL排序:SELECT ORDER BY

标签:order by   ==   enter   .net   div   iss   products   ext   gravity