본문 바로가기
programming/mssql

mysql 조건문 case

by hotdogya 2012. 5. 8.

select name, (case 'age' when 8 then '1학년' when 9 then '2학년' else '3학년' end) as age from student