【发布时间】:2021-01-10 10:24:51
【问题描述】:
我试图从员工表中选择secondhighestsalary,这是我的尝试,但它返回了
SQL 语句没有正确结束
select salary as secondhighestsalary from employee
order by salary desc
offset 1 rows
fetch next 1 rows only;
那里有什么问题?甲骨文 SQL。
提前致谢。
【问题讨论】:
-
试试这个:
select salary as secondhighestsalary from employee WHERE rownum BETWEEN 1 and 1; order by salary desc