mysql 커스텀 정렬

mysql에서 특정 값들을 내 마음대로 정렬하고 싶을 때 다음과 같이 사용한다.

1
2
3
SELECT *
FROM 테이블명
ORDER BY FIELD(필드명, '값1', '값2', '값3');
Author

hwiVeloper

Posted on

2017-06-28

Updated on

2022-12-29

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

댓글

You forgot to set the shortname for Disqus. Please set it in _config.yml.