日期:2014-05-18 浏览次数:20866 次
declare @t table (设备 varchar(10) ,分类 varchar(10) ,级别 int) insert into @t select '变压器','变电','0' union all select '发电机','输电','1' union all select '主电网','配电','0' union all select '厂变压器','变电','1' union all select '市电网','配电','2' union all select '厂变压器2','配电','2' select * from @t order by case 分类 when '变电' then 0 when '输电' then 1 else 2 end,级别