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 |
Tags
- 개념
- mybatis
- controller
- javascript
- Ajax
- input
- jsp
- select
- eGov
- POI
- 오류
- TO_DATE
- html
- jQuery
- 태그
- JVM
- 과정평가형
- was
- Oracle
- 함수
- 정의
- Java
- CSS
- web.xml
- json
- eGovFramework
- sql
- array
- spring
- 암호화
Archives
- Today
- Total
목록case문 (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