STUDY/MYSQL
mysql 특정값 우선순위 정렬 - order by field
Huwon
2023. 1. 6. 11:56
●데이터를 조회할 때 특정 값으로 우선 순위들을 지정해 조회가 필요 할때가 있다.
order by field
select * from 테이블명
where 조회 조건이 있다면 조건
order by field(특정데이터 컬럼,'1순위값','2순위값'),
정렬조건 있다면 정렬;