先对salary进行限制,取排第二的薪水,再以emp_no进行排序 SELECT s.emp_no,s.salary FROM salaries s WHERE s.salary = ( SELECT DISTINCT salary from salaries order by salary DESC LIMIT 1,1 ) ORDER BY s.emp_no;