通用SQL语句排序的方法
发布网友
发布时间:2022-04-30 05:10
我来回答
共4个回答
热心网友
时间:2022-04-09 23:21
前十名:
select top 10 id,name,score from student order by score desc
第三名:
select top 1 * from (select top 3 * from [student] order by score desc) as tb1 order by score asc
注:使用 (top * asc )desc 这种方式在 rownumber 方法出来以前是最常用的sqlserver处理分页取值的方式
热心网友
时间:2022-04-10 00:39
查 前10名的:
select top 10 id,name,socre from student order by socre desc
热心网友
时间:2022-04-10 02:14
葫芦网上有博客 ,里面有方法
热心网友
时间:2022-04-10 04:05
问题很*,
使用写出来,也不会在实际中应用
提醒LZ,是oracle