반응형
Notice
Recent Posts
Recent Comments
Link
목록이중정렬 (1)
투케이2K
111. (Oracle/오라클) order by 절에 case when then 조건문을 사용해 이중 정렬 실시
/* =========================== */ [ 개발 환경 설정 ] 개발 툴 : Toad 개발 언어 : Oracle /* =========================== */ /* =========================== */ [소스 코드] /* [order by 절에 case when then 조건문을 사용해 이중 정렬 실시] 1. case when 조건 then 만족 수행 else 비만족 수행 입니다 2. order by (case when t_dept = '고구려' then 1 else 2 end) 작은 순서로 우선 정렬합니다 3. t_phone desc; 세부적으로 다시 t_phone값을 확인해 내림차순으로 정렳합니다 4. 로직 : case 문을 사용해 t_dep..
OracleDB
2021. 2. 25. 07:44