山东大学数据库实验1(2021年最新版)
2021/5/8 2:25:27
本文主要是介绍山东大学数据库实验1(2021年最新版),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
山东大学数据库实验1(2021年最新版)
creat table test1_student ( sid char(12) not null, name varchar(10) not null, sex char(2), age int, birthday date, dname varchar(30), class varchar(10) ) create table test1_course ( cid char(6) not null, name varchar(40) not null, fcid char(6), credit numeric(4,1)) create table test1_student_course ( sid char(20) not null, cid char(6) not null, score numeric(5,1), tid char(6), sctime date ) insert into test1_student values(‘200800020101’,’王欣’,’女’,19,date’1994-02-02’,’计算机学院’,’2010’); insert into test1_student values(‘200800020102’,’李华’,’女’,20,date’1995-03-03’,’软件学院’,’2009’); insert into test1_course values(300001,'数据结构',null,2); insert into test1_course values(300002,'数据库',300001,2.5); Insert into test1_student_course values(200800020101,300001,91.5,100101); Insert into test1_student_course values(200800020101,300002,92.6,100102); create table a as select distinct sid from test1_student_course; create table b as Select distinct sid from test1_student minus select sid from a; create view test2_01 as select test1_student.sid,name from test1_student cross join b where (test1_student.sid = b.sid); create view test2_01 as select test1_student.sid,name from test1_student CROSS JOIN b where (test1_student.sid = b.sid);
这篇关于山东大学数据库实验1(2021年最新版)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-09聊聊如何通过arthas-tunnel-server来远程管理所有需要arthas监控的应用
- 2024-05-09log4j2这么配就对了
- 2024-05-09nginx修改Content-Type
- 2024-05-09Redis多数据源,看这篇就够了
- 2024-05-09Google Chrome驱动程序 124.0.6367.62(正式版本)去哪下载?
- 2024-05-09有没有大佬知道这种数据应该怎么抓取呀?
- 2024-05-09这种运行结果里的10.100000001,怎么能最快改成10.1?
- 2024-05-09企业src漏洞挖掘-有意思的命令执行
- 2024-05-08阿里云域名注册流程,分享给第一次购买域名的新手站长!
- 2024-05-082024年,行业变动下的程序员应该首先学习哪种编程语言?