일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- vue Carousel
- vscode tutorial
- 오라클
- bulkinsert
- github
- jsp
- MariaDB
- 마스킹
- Tomcat
- 정보처리산업기사
- insertAll
- jdbc
- egov
- JSON
- 구멍가게코딩단
- mybatis
- 부스트코스
- INSERT
- spring
- NoSQL
- JAXBContext
- query
- JQuery
- swipe 배너
- Ajax
- checkbox
- vue.js
- mysql
- 기출문제
- java
Archives
- Today
- Total
목록
728x90
반응형
postgre (1)
728x90
반응형
개발새발
[mybatis] case when than 사용법
select case when block_yn = 'Y' then '차단' when drop_yn = 'Y' then '탈퇴' when block_yn ='N' and drop_yn ='N' then '정상' end as status from svc_user; 지금 사용하고 있는 postgre에서는 이렇게해도 문제없이 잘 돌아간다. 하지만 저 쿼리를 mybatis에서 사용하려고 하면 ()로 묶어줘야한다 like this,, select , user_no , (case when block_yn = 'Y' then '차단' when drop_yn = 'Y' then '탈퇴' when block_yn ='N' and drop_yn ='N' then '정상' end) as status , user_email f..
[YOGOJOGO]
2020. 10. 7. 12:16
728x90
반응형