日期:2014-05-18  浏览次数:20552 次

如何对公交车次(1,2,3,11,20,K3,K4,T5,T6)排序呢? 数字和字符串均按照从小到大!
如何对公交车次(1,2,3,11,20,K3,K4,T5,T6)排序呢?   数字和字符串均按照从小到大!

------解决方案--------------------
SELECT COL FROM TABLE WHERE ISNUMERIC (COL)=TRUE ORDER BY COL UNION ALL
SELECT COL FROM TABLE WHERE ISNUMERIC (COL)=FALSE
------解决方案--------------------
select * from ... order by 公交车名
------解决方案--------------------
SELECT COL FROM TABLE WHERE ISNUMERIC (COL)=TRUE ORDER BY COL UNION ALL
SELECT COL FROM TABLE WHERE ISNUMERIC (COL)=FALSE ORDER BY COL