select sal from emp order by sal desc limit 1,1;未正确结束的SQL命令会导致错误。
我不想让每个部门薪水最高的员工。
我在使用SQL。
发布于 2022-03-01 11:13:16
您可以使用ANSI语法offset ... fetch ...。
select sal from emp order by sal desc offset 1 rows fetch next 1 rows only;发布于 2022-03-01 11:16:20
https://stackoverflow.com/questions/71307519
复制相似问题