排序用法 order by asc desc

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 20:23   1653   0

单个字段排序

select c1,c2,c3 from table order by 3 asc


多字段排序

select c1,c2,c3 from table order by 2 asc,3 desc


按照子串排序

select substr(c1,1,3) c2 from table order by c2 asc

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP