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;
(这是第一次自己的做出的题目,加油)
2021-08-05 23:33:19
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;
(这是第一次自己的做出的题目,加油)