2014-01-08 57 views

回答

6

使用CASE

select case 
     when x >= 0 then 'Positive' 
     else 'Negative' 
     end as sign 
from tablename; 
+0

太好了!謝謝 –

相關問題