继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

抽取数据到另一个表中

Alvarez樣
关注TA
已关注
手记 4
粉丝 2
获赞 3

use [xk-zcx]
go
select CouNo ,CouName ,Credit ,SchoolTime into new_course
from Course
where WillNum>20
go

select s.StuNo,StuName,c.CouNo,CouName into my_class
from Student s,Course c,StuCou sc,Class cl
where s.StuNo =sc.StuNo and c.CouNo =sc.CouNo and cl.ClassNo =s.ClassNo and ClassName ='01 旅游管理'
go

insert Department
values ('11','数学系')
insert Department(DepartName,DepartNo)
values ('物理系','12')
insert Department(DepartNo,DepartName)
values ('13','化学系')
go
select *
from Department
go

insert into Class
select '20110001','03 旅游管理','03'
union
select '20110002','03 旅游管理','03'
union
select '20110003','02 旅游管理','02'
union
select '20110004','02 旅游管理','02'
go
select *
from Class
go

delete from achievement
where CouNo =001

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP