Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- jsp
- sql
- JVM
- 정의
- javascript
- input
- jQuery
- Ajax
- 과정평가형
- TO_DATE
- 함수
- CSS
- Oracle
- array
- html
- 암호화
- select
- mybatis
- 개념
- 오류
- spring
- eGov
- controller
- Java
- json
- 태그
- web.xml
- POI
- was
- eGovFramework
Archives
- Today
- Total
목록Case When Then (1)
web developer

CASE 표현식의 기본 구성은 다음과 같다. Case when 조건식1 then 결과1 when 조건식2 then 결과2 else 결과 * 조건식 사이에 콤마금지 * case 문은 end로 끝남 * ansi sql 형식 지원 * 결과에 null 사용금지 /* 조건식이 1개일때*/ case when a.animal_name= '사자' then '사자임' /*a.animal_name 사자임으로 변경*/ else '아님' /* 조건이 만족하지 않을시 '아님'으로 변경*/ end /* 위와 동일*/ case a.animal_name when '사자' then '사자임' else '아님' end /* 조건식 2개 이상일때*/ case when a.animal_name='사자' then '사자임' when a.an..
SQL/Oracle SQL
2021. 12. 28. 13:39