From b0f74980c2c4375c285152e828ace1914ac088c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=A6=83?= <1689472338@qq.com> Date: Wed, 15 Mar 2023 11:25:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=99=88=E5=A6=83=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...03\344\271\240\344\275\234\344\270\232.md" | 189 ---------------- ...25\345\215\267\344\275\234\344\270\232.md" | 204 ------------------ ...45\350\257\242\344\275\234\344\270\232.md" | 123 +++++++++++ 3 files changed, 123 insertions(+), 393 deletions(-) delete mode 100644 "19\351\231\210\345\246\203/20230308\347\273\203\344\271\240\344\275\234\344\270\232.md" delete mode 100644 "19\351\231\210\345\246\203/20230308\350\257\225\345\215\267\344\275\234\344\270\232.md" create mode 100644 "19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" diff --git "a/19\351\231\210\345\246\203/20230308\347\273\203\344\271\240\344\275\234\344\270\232.md" "b/19\351\231\210\345\246\203/20230308\347\273\203\344\271\240\344\275\234\344\270\232.md" deleted file mode 100644 index 7fec8d1..0000000 --- "a/19\351\231\210\345\246\203/20230308\347\273\203\344\271\240\344\275\234\344\270\232.md" +++ /dev/null @@ -1,189 +0,0 @@ -# 笔记 - -```sql -关联查询 -#演示左连接 -/* -(2)A -(3)A-A∩B -*/ -/* -观察数据: -t_employee 看成A表 -t_department 看成B表 -此时t_employee (A表)中有 李红和周洲的did是NULL,没有对应部门, - t_department(B表)中有 测试部,在员工表中找不到对应记录的。 -*/ -#查询所有员工,包括没有指定部门的员工,他们的姓名、薪资、部门编号、部门名称 -SELECT ename,salary,t_department.did,dname -FROM t_employee LEFT JOIN t_department -ON t_employee.did = t_department.did; -#查询的是A结果 A left join B - -#查询没有部门的员工信息 -SELECT ename,salary,t_department.did,dname -FROM t_employee LEFT JOIN t_department -ON t_employee.did = t_department.did -WHERE t_employee.did IS NULL; -#查询的结果是A - A∩B -#此时的where条件,建议写子表的关联字段is null,这样更准确一点。 -#如果要建外键,它们肯定有子表和父表的角色,写子表的关联字段is null -#因为父表中这个字段一般是主键,不会为null。 - - -#2、on子句 -/* -(1)on必须配合join使用 -(2)on后面只写关联条件 -所谓关联条件是两个表的关联字段的关系 -(3)有n张表关联,就有n-1个关联条件 -两张表关联,就有1个关联条件 -三张表关联,就有2个关联条件 -*/ -SELECT * -FROM t_employee INNER JOIN t_department -ON t_employee.did = t_department.did; #1个关联条件 - -#查询员工的编号,姓名,职位编号,职位名称,部门编号,部门名称 -#需要t_employee员工表,t_department部门表,t_job职位表 -SELECT eid,ename,t_job.jid,t_job.jname, `t_department`.`did`,`t_department`.`dname` -FROM t_employee INNER JOIN t_department INNER JOIN t_job -ON t_employee.did = t_department.did AND t_employee.job_id = t_job.jid; - - -#3、where子句,在查询结果中筛选 -#查询女员工的信息,以及女员工的部门信息 -SELECT * -FROM t_employee INNER JOIN t_department -ON t_employee.did = t_department.did -WHERE gender = '女'; - -#4、group by分组 -#查询所有员工的平均薪资 -SELECT AVG(salary) FROM t_employee; - -#查询每一个部门的平均薪资 -SELECT did,ROUND(AVG(salary),2 ) -FROM t_employee -GROUP BY did; - -#查询每一个部门的平均薪资,显示部门编号,部门的名称,该部门的平均薪资 -SELECT t_department.did,dname,ROUND(AVG(salary),2 ) -FROM t_department LEFT JOIN t_employee -ON t_department.did = t_employee.did -GROUP BY t_department.did; - -#查询每一个部门的平均薪资,显示部门编号,部门的名称,该部门的平均薪资 -#要求,如果没有员工的部门,平均薪资不显示null,显示0 -SELECT t_department.did,dname,IFNULL(ROUND(AVG(salary),2),0) -FROM t_department LEFT JOIN t_employee -ON t_department.did = t_employee.did -GROUP BY t_department.did; - -#查询每一个部门的女员工的平均薪资,显示部门编号,部门的名称,该部门的平均薪资 -#要求,如果没有员工的部门,平均薪资不显示null,显示0 -SELECT t_department.did,dname,IFNULL(ROUND(AVG(salary),2),0) -FROM t_department LEFT JOIN t_employee -ON t_department.did = t_employee.did -WHERE gender = '女' -GROUP BY t_department.did; -``` - - - -# 作业 - -```mysql - -CREATE DATABASE dingdan charset utf8; -drop database dingdan; -use dingdan; - -CREATE TABLE order1( -orderID INT, -orderDate date - -); - -INSERT into order1 VALUES -(1,'2008-01-12 00:00:00.000'), -(2,'2008-02-10 00:00:00.000'), -(3,'2008-02-15 00:00:00.000'), -(4,'2008-03-10 00:00:00.000'); - -CREATE TABLE order2( -itemID INT, -orderid INT, -itemType VARCHAR(20), -itemName VARCHAR(20), -theNumber INT, -theMoney int - -); -drop table order2; -INSERT INTO order2 VALUES -(1,1,'文具','笔',72,2), -(2,1,'文具','尺',10,1), -(3,1,'体育用品','篮球',1,56), -(4,2,'文具','笔',36,2), -(5,2,'文具','固体胶',20,3), -(6,2,'日常用品','透明胶',2,1), -(7,2,'体育用品','羽毛球',20,3), -(8,3,'文具','订书机',20,3), -(9,3,'文具','订书针',10,3), -(10,3,'文具','裁纸刀',5,5), -(11,4,'文具','笔',20,2), -(12,4,'文具','信纸',50,1), -(13,4,'日常用品','毛巾',4,5), -(14,4,'日常用品','透明胶',30,1), -(15,4,'体育用品','羽毛球',20,3); - - - - --- 1.查询所有的订单的订单的编号,订单日期,订购产品的类别和订购的产品名称,订购数量和订购单价 --- -SELECT * FROM order2: - -SELECT * FROM order1; - -SELECT order1.orderID,order1.orderDate,order2.itemType,order2.itemName,order2.theNumber,order2.theMoney FROM order2 LEFT JOIN order1 on order1.orderID = order2.orderid ; - - --- 2.查询订购数量大于50的订单的编号,订单日期,订购产品的类别和订购的产品名称 --- -SELECT order1.orderID,order1.orderDate,order2.itemType,order2.itemName FROM order2 LEFT JOIN order1 on order1.orderID = order2.orderid WHERE (order2.theNumber) > 50; - --- 3.查询所有的订单的订单的编号,订单日期,订购产品的类别和订购的产品名称,订购数量和订购单价以及订购总价 --- -SELECT order1.orderID,order1.orderDate,order2.itemType,order2.itemName,order2.theNumber,order2.theMoney,(order2.theNumber*order2.theMoney) FROM order2 LEFT JOIN order1 on order1.orderID = order2.orderid ; - - - --- 4.查询单价大于等于5 或者 数量大于等于50的订单的订单的编号,订单日期,订购产品的类别和订购的产品名称,订购数量和订购单价以及订购总价 --- -SELECT order1.orderID,order1.orderDate,order2.itemType,order2.itemName,order2.theNumber,order2.theMoney,(order2.theNumber*order2.theMoney) FROM order2 LEFT JOIN order1 on order1.orderID = order2.orderid WHERE (order2.theMoney) >= 5 OR (order2.theNumber) >= 50; - --- 5.查询每个订单分别订购了几个产品,例如: --- 编号 订购产品数 --- 1 3 --- 2 4 - -SELECT order1.orderID as 编号,order2.theNumber 订购产品数 FROM order2 LEFT JOIN order1 on order1.orderID = order2.orderid; - --- --- 6.查询每个订单里的每个类别的产品分别订购了几次和总数量,例如: --- --- 订单编号 产品类别 订购次数 总数量 --- --- 1 文具 2 82 --- 1 体育用品 1 1 --- 2 文具 2 56 --- 2 体育用品 1 2 --- 2 日常用品 1 20 - -SELECT order1.orderID as 订单编号,order2.itemType as 产品类别 ,order2.theNumber as 订购次数 ,sum(order2.theNumber) as 总数量 FROM order2 LEFT JOIN order1 on order1.orderID = order2.orderid ; - - -``` - diff --git "a/19\351\231\210\345\246\203/20230308\350\257\225\345\215\267\344\275\234\344\270\232.md" "b/19\351\231\210\345\246\203/20230308\350\257\225\345\215\267\344\275\234\344\270\232.md" deleted file mode 100644 index dfb1554..0000000 --- "a/19\351\231\210\345\246\203/20230308\350\257\225\345\215\267\344\275\234\344\270\232.md" +++ /dev/null @@ -1,204 +0,0 @@ -```mysql -1. -- # MySQL基础结课考试 - -- ## 考试时间 120 分钟 总分:100分 - -- **场景**: - -- 你在一个软件公司上班,今天公司接一个新业务。要用MySQL给一个小说网站设计一个数据库。 - -- **数据库名**:xiaoshuo - -- 该数据库里有四张表:作家信息表 ( author )、作家等级信息表 ( vip )、小说作品信息表 ( story )、小说作品类型表 ( type ) - -- ### 1、相关表结构 - -- 1. 作家信息表 ( author ) (4分) --- | 字段名称 | 数据类型 | 说明及要求 | --- | ------------ | ------------| -------------------------------| --- | author_id | int | 作家编号,主键 | --- | author_name | varchar(20) | 作家姓名、非空、不能重复 | --- | credits | int | 积分 | --- | vip_id | varchar(20) | 等级编号,非空、外键关联等级信息表 | - --- | -- 2. 作家等级信息表 ( vip ) (3分) --- | 字段名称 | 数据类型 | 说明及要求 | --- | -------- | ----------- | ------------------------- | --- | vip_id | varchar(20) | 等级编号,主键 | --- | vip_name | varchar(20) | 等级名称,非空,不能重复 | --- | | | | - --- 3. 小说作品信息表 ( story )(4分) --- | 字段名称 | 数据类型 | 说明及要求 | --- | ------------ | ----------- | ----------------------------- | --- | story_id | int | 作品编号,主键,自增 | --- | author_id | int | 作家编号,外键,关联作家信息表 | --- | type_id | varchar(20) | 类型编号,外键,关键作品类型表 | --- | story_name | varchar(50) | 作品名称 | --- | views_number | int | 浏览量 | --- | | | | --- 4. 小说作品类型表 ( type )(2分) --- | 字段名称 | 数据类型 | 说明及要求 | --- | --------- | ----------- | ------------------------ | --- | type_id | varchar(20) | 类型编号,主键 | --- | type_name | varchar(20) | 类型名称,非空,不能重复 | --- | | | | --- ### 2、对应的表数据 --- 1. 作家信息表 (4分) - --- | 作家编号 | 作家名称 | 积分 | 等级编号 | --- | -------- | :------: | :------: | :---------------------: | --- | 1001 | 朱逸群 | 600 | VIP01 | --- | 1002 | 范建 | 8510 | VIP04 | --- | 1003 | 史珍香 | 981 | VIP02 | --- | 1004 | 范统 | 2364 | VIP02 | --- | 1005 | 杜子腾 | 257 | VIP01 | --- | 1006 | 刘产 | 678 | VIP02 | --- | 1007 | 杜琦燕 | 438 | VIP03 | - --- 2. 等级信息表(2分 - --- | 等级编号 | 等级名称 | --- | :------: | :------:| --- | VIP01 | 青铜作家 | --- | VIP02 | 白银作家 | --- | VIP03 | 黄金作家 | --- | VIP04 | 钻石作家 | --- 3. 小说作品信息表(5分) --- | 作品编号 | 作家编号 | 类型编号 | 作品名称 | --- | :------: | :------: | :------: | :-------------------- | --- | 1 | 1002 | L03 | 母猪产后与护理师的二三事 | --- | 2 | 1005 | L04 | 拖拉机大战蜘蛛侠 | --- | 3 | 1003 | L01 | 这只小龙虾不正经 | --- | 4 | 1006 | L04 | 一个爹爹三个娃 | --- | 5 | 1006 | L01 | 皇上滚开本宫只劫财 | --- | 6 | 1005 | L05 | 给长城贴瓷砖的小太监 | --- | 7 | 1003 | L03 | 不科学御兽 | --- | 8 | 1005 | L01 | 镜面管理局 | --- | 9 | 1004 | L02 | 关于我成为灭魂师之后 | --- | 10 | 1004 | L05 | 公子别秀 | - --- 4. 作品类型(3分) --- | | | --- | :------: | :------: | --- | L01 | 玄幻 | --- | L02 | 奇幻 | --- | L03 | 武侠 | --- | L04 | 仙侠 | --- | L05 | 都市 | --- 3、题目 --- > 所有题目要求使用SQL语句完成 --- 1. 根据前面提供的表结构和表数据,创建数据库并分别创建这张四张表;并插入相关数据。(提醒:外键请注意建表顺序和插入数据的顺序) (30分) -create database xiaoshuo charset utf8; - - use xiaoshuo; - - create table author( - author_id int primary key, - author_name varchar(20) not null unique key, - credits int, - vip_id varchar(20) not null, - foreign key (vip_id) references vip(vip_id) - ); - - create table vip( - vip_id varchar(20) primary key, - vip_name varchar(20) not null unique key - ); - - create table story( - story_id int primary key auto_increment, - author_id int, - type_id varchar(20), - story_name varchar(50), - views_number int, - foreign key (author_id) references author(author_id), - foreign key (type_id) references type(type_id) - ); - - create table type( - type_id varchar(20) primary key, - type_name varchar(20) not null unique key - ); - - insert into author values - (1001,'朱逸群',600,'VIP01'), - (1002,'范建',8510,'VIP04'), - (1003,'史珍香',981,'VIP02'), - (1004,'范统',2364,'VIP02'), - (1005,'杜子腾',257,'VIP01'), - (1006,'刘产',678,'VIP02'), - (1007,'杜琦燕',438,'VIP03'); - - insert into vip values - ('VIP01','青铜作家'), - ('VIP02','白银作家'), - ('VIP03','黄金作家'), - ('VIP04','钻石作家'); - - insert into story VALUES - (1,1002,'L03','母猪产后与护理师的二三事',6541), - (2,1005,'L04','拖拉机大战蜘蛛侠',563), - (3,1003,'L01','这只小龙虾不正经',8754), - (4,1006,'L04','一个爹爹三个娃',36354), - (5,1006,'L01','皇上滚开本宫只劫财',3674), - (6,1005,'L05','给长城贴瓷砖的小太监',6541), - (7,1003,'L03','不科学御兽',1257), - (8,1005,'L01','镜面管理局',3216), - (9,1004,'L02','关于我成为灭魂师之后',1147), - (10,1004,'L05','公子别秀',2078); - - insert into type VALUES - ('L01','玄幻'), - ('L02','奇幻'), - ('L03','武侠'), - ('L04','仙侠'), - ('L05','都市'); - -- 2. 将story 表中的story_name字段类型改成varchar(40) 。(2分) - alter table story modify story_name varchar(40); - - -- 3. 在author表中增加一个性别字段 字段名:author_sex,类型: char(10),要求默认值为'男'。 (3分) - alter table author add author_sex char(10) default '男'; - - -- 4. 将作家编号为1005、1007的作家性别改为'女' 。(2分) - update author set author_sex = '女' where author_id = 1007 or author_id = 1005; - - -- 5. 作家杜子腾,写了一篇名为《拜登夸我很帅》的都市小说,有854个浏览量,请将这条信息插入到story表。(3分) - insert into story values (11,1005,'L05','拜登夸我很帅',845); - - -- 6. 《拖拉机大战蜘蛛侠》这篇小说,浏览量涨了100,请更新story表中的相关数据。(2分) - update story set views_number = views_number + 100 where story_name = '拖拉机大战蜘蛛侠'; - - -- 7. 请删除story表的中《皇上滚开本宫只劫财》这篇小说相关数据。(2分) - delete from story where story_name = '皇上滚开本宫只劫财'; - - -- 8. 查询 浏览量大于 8000的小说的作者编号和小说作品名称。(2分) - select author_id,story_name from story where views_number > 8000; - - -- 9. 查询积分大于1000 并且会员等级高于vip03的作家所有信息。(3分) - select * from author where credits > 1000 and vip_id > 'vip03'; - - -- 10. 查询姓名以杜字开头的作家的姓名,积分和等级编号。(3分) - select author_name,credits,vip_id from author where author_name like '杜%'; - - -- 11. 查询积分在100、1000之间的作家信息,以积分降序排列。 (3分) - select * from author where credits between 100 and 1000 order by credits desc; - - -- 12. 查询出小说的总浏览量,最高浏览量,最小浏览量,平均浏览量,给字段用上中文别名。(3分) - select sum(views_number) 总浏览量,max(views_number) 最高浏览量,min(views_number) 最小浏览量,avg(views_number) 平均浏览量 from story; - - -- 13. 查询各种等级的作家的平均积分和作家数量,并对查询结果使用中文别名。(3分) - select avg(credits) 平均积分,COUNT(author_id) 作家数量 from author group by vip_id; - - -- 14. 查询小说数量大于等于2的分类编号和小说数量。(4分) - select type_id,COUNT(type_id) from story group by type_id having COUNT(type_id)>= 2; - - -- 15. 查询所有小说中浏览量最少的书的作品编号、作品名称和类型编号、浏览量。(4分) - select story_id,story_name,story.type_id,views_number from story where views_number in (select min(views_number) from story); - - -- 16. 查询积分比刘产高的作者所有信息。(5分) - select * from author where credits > (select credits from author where author_name = '刘产'); - - -- 17. 查询出哪些白银作家是没有写小说的,显示这些作家的姓名、等级名称。(8分) - select author_name,c.vip_name from author a left join story b on a.author_id = b.author_id left join vip c on c.vip_id = a.vip_id where c.vip_name = '白银作家' and type_id is null; - - -- 18. 找出写过作品浏览量大于5000的作家的所有作品中浏览量不到1000的作品信息(8分) - select * from story where views_number < 1000 and author_id in (select author.author_id from author left join story on author.author_id = story.author_id where views_number >5000); - - -- 19.查询所有小说的小说编号、小说名称、浏览量、分类名称、作者姓名、作者积分、作者等级名称,结果字段要用中文别名,并按浏览量降序排列,如果浏览量一样的,再按积分降序排列。(10分) - select story_id 小说编号,story_name 小说名称,views_number 浏览量,type_id 分类名称,author.author_id 作者姓名,credits 作者积分,vip_id 作者等级 from story left join author on author.author_id = story.author_id ORDER BY views_number desc,credits desc; -``` - diff --git "a/19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" "b/19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" new file mode 100644 index 0000000..3005903 --- /dev/null +++ "b/19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" @@ -0,0 +1,123 @@ +# 作业 + +```mysql +create database cfzy charset utf8; + +use cfzy; + +create table stuinfo( + stuno varchar(20) primary key, + stuname varchar(20), + stuage int, + stuaddress varchar(50), + stuseat int, + stusex int); + +create table stuexam( + examno int primary key, + stuno varchar(20), + writtenexam int, + labexam int, + foreign key (stuno) references stuinfo(stuno) +); + + + + +insert into stuinfo values + ('s2501','张秋利',20,'美国硅谷',1,1), + ('s2502','李斯文',18,'湖北武汉',2,0), + ('s2503','马文才',22,'湖南长沙',3,1), + ('s2504','欧阳俊雄',21,'湖北武汉',4,0), + ('s2505','梅超风',20,'湖北武汉',5,1), + ('s2506','陈旋风',19,'美国硅谷',6,1), + ('s2507','陈风',20,'美国硅谷',7,0); + +insert into stuexam values + (1,'s2501',50,70), + (2,'s2502',60,65), + (3,'s2503',86,85), + (4,'s2504',40,80), + (5,'s2505',70,90), + (6,'s2506',85,90); + + + + + +-- 1.查询学生信息表(stuinfo)中所有列信息,给每列取上中文名称 +select stuno 学号,stuname 姓名,stuage 年龄,stuaddress 地址,stuseat 座位号,stusex 性别 from stuinfo; + +-- 2.查询学生信息表(stuinfo)中的姓名,年龄和地址三列的信息 +select stuname,stuage,stuaddress from stuinfo; + +-- 3.查询学生分数表(stuexam)中的学号,笔试和机试三列的信息,并为这三列取中文名字 +select stuno 学号,writtenexam 笔试,labexam 机试 from stuexam; + +-- 5.查询学生分数表(stuexam)中的学生的学号,笔试,机试以及总分这四列的信息 +select stuno,writtenexam,labexam,(writtenexam+labexam) from stuexam; + +-- 6.查询学生信息表(stuInfo)中学生来自哪几个地方 +select distinct stuaddress from stuinfo; + +-- 7.查询学生信息表(stuInfo)中学生有哪几种年龄,并为该列取对应的中文列名 +select distinct stuage 年龄 from stuinfo; + +-- 8.查询学生信息表(stuInfo)中前3行记录 +select * from stuinfo limit 3; + +-- 9.查询学生信息表(stuInfo)中前4个学生的姓名和座位号 +select stuname,stuseat from stuinfo; + +-- 11.将地址是湖北武汉,年龄是20的学生的所有信息查询出来 +select * from stuinfo where stuaddress = '湖北武汉' and stuage = '20'; + +-- 12.将机试成绩在60-80之间的信息查询出来,并按照机试成绩降序排列 +select * from stuexam where labexam between 60 and 80 ORDER BY labexam; + +-- 13.查询来自湖北武汉或者湖南长沙的学生的所有信息 +select * from stuinfo where stuaddress = '湖北武汉' or stuaddress = '湖南长沙'; + +-- 14.查询出笔试成绩不在70-90之间的信息,并按照笔试成绩升序排列 +select * from stuexam where writtenexam not between 70 and 90 ORDER BY labexam desc; + +-- 15.查询年龄没有写的学生所有信息 +select * from stuinfo where stuage is null; + +-- 16.查询年龄写了的学生所有信息 +select * from stuinfo where stuage is not null; + +-- 17.查询姓张的学生信息 +select * from stuinfo where stuname like '张%'; + +-- 18.查询学生地址中有‘湖’字的信息 +select * from stuinfo where stuaddress like '%湖%'; + +-- 19.查询姓张但名为一个字的学生信息 +select * from stuinfo where stuname like '张_'; + +-- 20.查询姓名中第三个字为‘俊’的学生的信息,‘俊’后面有多少个字不限制 +select * from stuinfo where stuname like '__俊%'; + +-- 21.按学生的年龄降序显示所有学生信息 +select * from stuinfo where stuage order by stuage desc; + +-- 22.按学生的年龄降序和座位号升序来显示所有学生的信息 +select * from stuinfo order by stuage desc,stuseat,stuseat asc; + +-- 23显示笔试第一名的学生的考试号,学号,笔试成绩和机试成绩 +select examno,stuno,writtenexam,labexam from stuexam where writtenexam in (select max(writtenexam) from stuexam); + +-- 24.显示机试倒数第一名的学生的考试号,学号,笔试成绩和机试成绩 +select examno,stuno,writtenexam,labexam from stuexam where labexam in (select min(labexam) from stuexam); + +-- 25.查询每个地方的学生的平均年龄 +select stuaddress,avg(stuage) from stuinfo group by stuaddress; + +-- 26.查询男女生的分别的年龄总和 +select stusex,sum(stuage) from stuinfo group by stusex; + +-- 27.查询每个地方的男女生的平均年龄和年龄的总和 +select stusex,avg(stuage),sum(stuage) from stuinfo group by stusex; +``` + -- Gitee From 3f020836e33e06735a3bd2ed19bbd0de915eb3a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=A6=83?= <1689472338@qq.com> Date: Wed, 15 Mar 2023 11:42:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=99=88=E5=A6=83=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" | 1 - 1 file changed, 1 deletion(-) diff --git "a/19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" "b/19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" index 3005903..db6d2f2 100644 --- "a/19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" +++ "b/19\351\231\210\345\246\203/20230309\346\237\245\350\257\242\344\275\234\344\270\232.md" @@ -18,7 +18,6 @@ create table stuexam( stuno varchar(20), writtenexam int, labexam int, - foreign key (stuno) references stuinfo(stuno) ); -- Gitee