悉野小楼

导航

sql cast转变格式

select * from sys_term order by cast( 列名 as int)

 

可以把列字符串转成整数再排序, 如果列中存放的是整数

posted on 2010-10-27 19:16  悉野  阅读(183)  评论(0编辑  收藏  举报