表中没有"第二行",因为表表示无序集.但是,根据某些顺序,您可以拥有第二行.所以我假设你有一个订购专栏.
然后,您可以使用嵌套查询和top
:
select top (1) t.*
from (select top (2) t.*
from t
order by ordering_col asc
) t
order by ordering_col desc;
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
36 次 |
最近记录: |