특정 조건으로 다시 정렬 한 후 특정 조건의 순위를 출력 mysql php 순위 랭킹

특정 조건으로 다시 정렬 한 후 특정 조건의 순위를 출력 mysql php 순위 랭킹

더시민 0 847 2022.05.02 19:25

select *, a.pc_on_rank from (select * , RANK() OVER(ORDER BY ranking asc) as pc_on_rank from a_rank where online = '실시간 스트리밍 중' and type = 'pc' and gettime = '1651485886' ) a where ( name like '%야옹%' or name like '%야옹' or name like '야옹%' or name = '야옹' )

Comments

Category
Facebook Twitter GooglePlus KakaoStory KakaoTalk NaverBand