单个字段排序
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
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
QQ咨询|关于我们|Archiver|手机版|小黑屋|( 辽ICP备15012455号-4 ) Powered by 期权论坛 X3.2 © 2001-2016 期权工具网&期权论坛 Inc.
下载期权论坛手机APP