select b,c,
CASE a  
 WHEN '1' THEN '1001'
 WHEN '2' THEN '1002'
ELSE '1003'
 end
 from test1 

 

相关文章: