日期:2014-05-18 浏览次数:20511 次
declare @t table ( col varchar(100) ) insert @t select '12,1354,1' union all select '1,12,1234' union all select '14435,35234,2' select * from @t order by convert(int,parsename(replace(col,',','.'),3)) select * from @t order by convert(int,parsename(replace(col,',','.'),2)) select * from @t order by convert(int,parsename(replace(col,',','.'),1))