SQL 按照in排序

mysql SELECT * FROM ozb_team_code WHERE TEAM_ID in (09,07,04,24,12) ORDER BY INSTR(',09,07,04,24,12,',CONCAT(',',TEAM_ID,','))mysql

order select * from ozb_team_code where TEAM_ID in(09,07,04,24,12)order by instr('(09,07,04,24,12)',TEAM_ID);sql

相關文章
相關標籤/搜索