일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SpringBoot
- JPQL
- QueryDSL
- 백준
- 인프런
- 그리디
- springdatajpa
- Proxy
- Android
- Greedy
- AOP
- JDBC
- pointcut
- Spring Boot
- http
- spring
- java
- Servlet
- transaction
- 스프링 핵심 기능
- 스프링 핵심 원리
- db
- 스프링
- Exception
- 알고리즘
- 김영한
- 자바
- jpa
- kotlin
- Thymeleaf
- Today
- Total
목록조건식 (2)
개발자되기 프로젝트
1. Thymeleaf의 조건식 if unless ( if 의 반대) 2. if, unless 타임리프는 해당 조건이 맞지 않으면 태그 자체를 렌더링하지 않는다. 만약 다음 조건이 false 인 경우 ... 부분 자체가 렌더링 되지 않고 사라진다. user.age가 10인경우 if문이 true -> th:text="미성년자" 랜더링됨. 3. switch * 은 만족하는 조건이 없을 때 사용하는 디폴트 값. 10살 20살 기타 4. Controller @GetMapping("/condition") public String condition(Model model){ addUsers(model); return "basic/condition"; } 5. condition.html if, unless count ..
1. 기본 CASE 식 if와 유사, 해당 조건이 만족하면 then 하위 내용 으로 결과. Select case when m.age = 60 then '경로요금' else '일반요금' end from Member m 예제 String query = "select " + "case when m.age =60 then '경로요금'" + " else '일반요금' end " + "from Member m"; 2. 단순 CASE 식 switch와 유사, 정확하게 내용이 매치되면 결과 select case t.name when '팀A' then '인센티브 110%' when '팀B' then '인센티브 120%' else '인센티브 105%' end from Team t 3. COALESCE 하나씩 조회해서 nu..