老规矩,先弄一波测试数据,数据填充代码没有什么意义,先折叠起来:

/*
    第一步:创建临时表结构
*/
CREATE TABLE #Student  --创建临时表
(
    StuName nvarchar(20),    --学生名称
    Chinese int,
    Math int,
    English int
)
DROP TABLE #Student      --删除临时表
SELECT * FROM #Student   --查询所有数据

INSERT INTO #Student(StuName,Chinese,Math,English) VALUES('张三',70,86,96);
INSERT INTO #Student(StuName,Chinese,Math,English) VALUES('李四',49,85,86);
INSERT INTO #Student(StuName,Chinese,Math,English) VALUES('王五',59,58,90);
INSERT INTO #Student(StuName,Chinese,Math,English) VALUES('赵六',68,79,80);
View Code

相关文章:

  • 2021-09-22
  • 2021-06-14
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-11-23
猜你喜欢
  • 2022-02-09
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
相关资源
相似解决方案