云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 数据库原理及应用孟彩霞版实验3~8 - 图文

数据库原理及应用孟彩霞版实验3~8 - 图文

  • 62 次阅读
  • 3 次下载
  • 2025/5/4 7:56:09

select Sno,Sname,Sex,Age from 学生表Student where Sdept='CS' with check option

55

create view 学生表student_course_2 as

select 学生表Student.Sno,Sname,Sex,Age,Cno,Grade from 学生表Student,学生选课表SC

where 学生表Student.Sno=学生选课表SC.Sno and Grade>=80 and Cno='2'

56

create view 学生表student_birth(Sno,Sname,Sbirth) as

select Sno,Sname,2008-Age from 学生表Student

57

select Sno,Sname

from c_学生表student

where Age between 18 and 22

58

select Sno,Sname

from 学生表student_course_2 where Sex='女' and Grade>=90

59

update c_学生表student set Sname = '张良' where Sno='201010'

60 61

DELETE

FROM c_学生表student WHERE Sno= '201007';

(2)1)

CREATE VIEW Bj_orders(orderid,goodsname,quantity,customerid,cname) AS

select orderid,goodsname,quantity,orders.customerid,cname from orders,customers,goods

where customers.customerid=orders.customerid and goods.goodsid=orders.goodsid and city='beijing'

2) Select*

from Bj_orders

where Cname='张三'

试验7

1) JWGL第四章,例1,3~7

1. create procedure 学生表student_course as

select 学生表student.Sno,Sname,Cname,Grade

from 学生表student,课程表Course,学生选课表SC

where 学生表student.Sno=学生选课表SC.Sno and 课程表Course.Cno= 学生选课表SC.Cno and Sname='刘伟';

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

select Sno,Sname,Sex,Age from 学生表Student where Sdept='CS' with check option 55 create view 学生表student_course_2 as select 学生表Student.Sno,Sname,Sex,Age,Cno,Grade from 学生表Student,学生选课表SC where 学生表Student.Sno=学生选课表SC.Sno and Grade>=80 and Cno='2' 56 create view 学生表student_birth(Sno,Sname,Sbirth) as select Sno,Sname,2008-Age fr

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com