【Vegas原创】SQL case when 用法

 

select form_no,cource,hbddept,empno,hbdcnm,substring(empno,1,4as eDate,
 
case ctype  when '1' then '内训' when '0' then '外训' end 
 
from old,etsshbd
where old.empno=etsshbd.hbdwno 

 

posted @ 2007-12-10 11:18  李济宏(Amadeus)  阅读(107)  评论(0编辑  收藏  举报