日期:2014-05-17 浏览次数:20490 次
;with tb(col) as ( select '1-1-18-1' union all select '1-1-2-1' ) select col from ( select COL,rn=cast(REPLACE(col,'-','') as int) from tb )t order by rn /* col ---------------------- 1-1-2-1 1-1-18-1 */