create table Test
(
ID int primary key identity(1,1),
[Type] nvarchar(50)
)
insert into Test([Type]) values('SW');
insert into Test([Type]) values('ZW');
insert into Test([Type]) values('XW');
insert into Test([Type]) values('WS');
select * from Test;
select ID,[Type],case [Type]
when 'SW' then '上午'
when 'ZW' then '中午'
when 'XW' then '下午'
else '晚上' end as [ChineseType]
from Test;