[mysql] state 특정 컬럼 유무 에 따른 정렬 order by case when then SELECT * FROM table ORDER BY CASE WHEN state = 'done' THEN 1 ELSE 2 END, state; 공부 (@Deprecated) 2023.09.18