일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Oracle DB
- 답변형 게시판
- 모조칼럼
- sql developer
- Java
- oracle
- Oracle SQL
- alias
- 제약조건
- JSP
- 이클립스
- SQL
- 성적프로그램
- HTTP Status 404
- 과정평가형
- HTML
- 부트스트랩
- CRUD
- github
- ||
- tomcat
- rownum
- Bootstrap
- distinct
- JavaScript
- 한글 인코딩
- jQuery
- group by
- HTTP Status 500
- git
Archives
목록decode() (1)
초급의 끄적거림
[SQL] case when ~ then end 구문 / decode() 함수
[case when ~ then end 구문] ⊙ 형식 case when 조건1 then 조건만족시 값1 when 조건2 then 조건만족시 값2 when 조건3 then 조건만족시 값3 . . . else 값 - case 에 나오는 조건이 없을 경우 default값이라고 보면 됨 end 결과칼럼명 - 결과칼럼명에 한글 넣을 경우 " " 사용 ⊙ 문1) 국어점수에 따라 A, B, C, D, F 학점을 구하시오 select uname, kor, CASE when kor>=90 then 'A학점' when kor>=90 then 'B학점' when kor>=90 then 'C학점' when kor>=90 then 'D학점' else 'E학점 end "학점" from sungjuk; ⊙ 문2) addr 칼럼의..
DB/Oracle
2019. 7. 25. 09:38