其实没必要两次查询,直接查询前6名,然后在while结果的时候把,4,5名continue就可以了大概语句是select * from compayee order by '工资' desc limit 6