insert all
来源:互联网 发布:6x6摇头矩阵灯 编辑:程序博客网 时间:2024/05/01 17:08
TABLE A: STUDENT、GRADE
TABLE B: STUDENT、TYPE
TABLE C: STUDENT、SCORE
现在要将C表中所有学生的SCORE 存入A表中,当TYPE为 a时 GRADE=SCORE*0.5,TYPE为b时,GRADE=SCORE*0.4,TYPE为c时,GRADE=SCORE*0.3
这个SQL语句要怎么写
SQL> INSERT ALL
2 WHEN type='a' THEN INTO tableA values(student,score*0.5)
3 WHEN type='b' THEN INTO tableA VALUES (student, score*0.5)
4 ELSE INTO tableA VALUES(student, score*0.3)
5 select c.student,c.score,b.type from TABLEC c,TABLEB b where c.student=b.student;
- insert all
- insert all
- insert all insert first
- INSERT ALL和INSERT FIRST
- insert all与insert first
- INSERT FIRST和INSERT ALL
- insert all/ insert first/ pivoting insert
- insert/insert all/insert first详解
- insert all用法
- insert all 的好处
- INSERT ALL的用法
- insert all 语句
- insert all 的使用方法
- insert all 学习
- oracle insert all
- Insert All的妙用
- Insert All的用法
- oracle insert all 用法
- Answer to Chapter 3 of O'Reilly Learning Sql on SQL Server 2005
- ArcMap的书签操作
- 学习管道
- WebGIS的书签 MapXtreme VS2008(C#) Sql Server2005
- Knowing makefile in linux
- insert all
- 『phphot』【SD2.0大会】技术:为Tomcat配置SSL功能的实验步骤
- 我的电脑学习历程.第二章.电脑技术的第一次飞跃
- 『phphot』【SD2.0大会】讲师范路:我技术不行,用RoR搭建一个网站用两天
- 快速测试一条Select SQL语句是否合法
- Struts2标签介绍
- 『phphot』【SD2.0大会】蒋涛:CSDN为什么举办SD2C大会
- 10分钟学会Ajax
- 母函数(Generating function)详解