更改成绩小于60分的,分数大小为前5个人的 成绩为61分?????如何写??? update 成绩表 set 分数 = 61where 分数 in (select top 5 分数 from 成绩表 where 分数<60 order by 分数 desc) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update t_score set score = 61 where score exists (select top 5 score from t_score where score<60 order by score desc) 从性能上:einsteincao(至尊宝) 更好一点 可能还是要按学号之类的主键更好一些。这样可以解决并列第5的问题。update 成绩表 set 分数 = 61where 学号 in (select top 5 学号 from 成绩表 where 分数<60 order by 分数 desc) update 成绩表 set 分数 = 61where (select count(1) from 成绩表 b where b.分数<60 and b.分数>=成绩表.分数 )<=5and 分数<60并列情况 一个月的数据量就有 3百多万条,求解决方案 怎么按照指定字段的值序列排序 求一SQL语句~希望高手帮帮忙 求一SQL语句...在线等 急.. 安装问题(在线等待中) 数据库恢复,紧急重要 为什么这个动态模糊查询总是丢掉了末尾的%' 有谁遇见过这样的问题??我装了一天了~~:( SQL Server是如何利用内存的 请问能否能将某一字段的属性修改成IDENTITY(1,1);(焦急等待中) 如何对存储过程的执行结果中的关键字段进行过滤? 一个SQL语句的问题望高手指教
update 成绩表 set 分数 = 61
where 学号 in (select top 5 学号 from 成绩表 where 分数<60 order by 分数 desc)
where (select count(1) from 成绩表 b where
b.分数<60 and b.分数>=成绩表.分数 )<=5
and 分数<60
并列情况