diff --git "a/\351\231\210\346\255\243\346\245\240/.keep" "b/\351\231\210\346\255\243\346\245\240/.keep" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/\351\231\210\346\255\243\346\245\240/20230905.md" "b/\351\231\210\346\255\243\346\245\240/20230905.md" new file mode 100644 index 0000000000000000000000000000000000000000..f5819aa89d6baf763f09d9fe99463f01e1de5705 --- /dev/null +++ "b/\351\231\210\346\255\243\346\245\240/20230905.md" @@ -0,0 +1,14 @@ +``` +心得; + +学习到了新知识,可以使用vip解析,获得破解版本。 +了解到盘搜搜这个好东西 可以 共享到好多的资源。 +学到了visio软件 +对自己新的学期有了新的目标 +知识越来越深入,要加强学习,不断努力。希望自己可以持之以恒 +``` + + + + + diff --git "a/\351\231\210\346\255\243\346\245\240/20230906.md" "b/\351\231\210\346\255\243\346\245\240/20230906.md" new file mode 100644 index 0000000000000000000000000000000000000000..c4d3c966543483567050d51152b41cdce214e3ac --- /dev/null +++ "b/\351\231\210\346\255\243\346\245\240/20230906.md" @@ -0,0 +1,120 @@ +```mysql +create DATABASE school charset utf8; + +use school; + + +create table college( +college_id int PRIMARY key, +college_name varchar(10) +); + +insert into college values +(1,'软工学院'); +(2,'智能学院'); + + + +create table profe( +profe_id int PRIMARY key, +profe_name varchar(10), +college_id int, +FOREIGN key(col_id) REFERENCES college(college_id) +); + +insert into profe values +(1,'软件技术',1); +(2,'软件技术',2) + + +create table class( +class_id int , +class_name varchar(10), +profe_id int, +FOREIGN key(profe_id) REFERENCES profe(profe_id) +); + +insert into class values +(1,'一班',1), +(2,'二班',1), +(3,'三班',1); + + + +create table student( +student_id int PRIMARY key, +student_name varchar(10), +class_id int, +FOREIGN key(class_id) REFERENCES class(class_id) +); + +insert into student values +(1,'小黄',1), +(2,'小粉',2), +(3,'小紫',3); + +create table course( +course_id int , +course_name varchar(10) +); + +insert into course values +(1,'JAVA'), +(2,'MYSQL'), +(3,'c++'); + + + + +create table ke( +kecheng_time varchar(10), +class_id int, +FOREIGN key(class_id) REFERENCES class(class_id) +); + + +insert into ke values +('周一',1), +('周二',2), +('周三',3); + + +create table teacher( +teacher_id int, +teacher_name varchar(10), +couse_id int, +FOREIGN key(couse_id) REFERENCES course(couse_id) +); + +insert into teacher values +(1,'大大',1), +(2,'水水',2), +(3,'低低',3); + + + + + +笔记 + +一对一的关系 + +将其中任一表中的主键,放到另一个表当主键 + +一对多的关系 + +将一所在的表的主键放到多的表当外键 + +多对多的关系 + +必须第三张表,将前面两个表的主键放进来当外键 + + + + +``` + + + + +