Select 部门 From 部门表 Union all Select "全部"

解决方案 »

  1.   

    select 部门 from (
    Select 部门,1 as type From 部门表 
    Union Select "全部",2 as type
    ) as x
    order by type,部门
      

  2.   

    select * from(
    Select 部门 From 部门表 Union Select "全部"
    )a order by case 部门 when '全部' then 1 else 0 end,部门
      

  3.   


    Select ' ' + 部门 as 部门 From 部门表 Union Select '全部'