第一范文网 - 专业文章范例文档资料分享平台

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

来源:用户分享 时间:2025/9/23 11:58:22 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

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='刘伟';

数据库原理及应用孟彩霞版实验3~8 - 图文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c3rupt8xt6077t6k14chx_6.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top