--建立测试环境
--Create Table 表(name varchar(10),score varchar(10),semester varchar(10),place int)
--插入数据

--insert into 表
--select '张三:','87','1','' union
--select '李四:','90','1','' union
--select '王五:','91','1','' union
--select '刘海:','90','1',''

--测试语句
--update  表  set place =(select count(*)+1 from 表 where 表.score>a.score) from 表 a
--select * from 表
select score from 表
--select count(*)+1,name from 表 where score < any (select score from 表) group by name


 
 
--删除测试环境
--Drop Table 表

相关文章:

  • 2021-09-27
  • 2021-09-27
  • 2022-02-19
  • 2021-08-26
  • 2021-11-12
  • 2022-02-06
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2022-02-14
  • 2021-09-27
  • 2021-09-27
  • 2021-10-07
相关资源
相似解决方案