求一SQL语名,用的是SQL数据库,怎样取出倒序排列top10的第二条记录
求一SQL语名,用的是SQL数据库,怎样取出倒序排列top10的第二条记录select * from tb where id not in(select top 1 id fom tb order by id desc) order by id desc [/quote]
看不太懂,能解释一下吗? 这个第二条记录怎么取呢 select top 1 * from tb where id not in(select top 1 id fom tb order by id desc) order by id desc
页:
[1]
