From 9a79957f8534aa80cc0d3af1a06eb46ab567c243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E8=88=9C?= <1991510644@qq.com> Date: Wed, 13 Sep 2023 01:21:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "51 \347\250\213\350\210\234/20230905.md" | 43 +++++ "51 \347\250\213\350\210\234/20230907.md" | 14 ++ .../20230908.md" | 15 -- "51 \347\250\213\350\210\234/20230912.md" | 150 ++++++++++++++++++ 4 files changed, 207 insertions(+), 15 deletions(-) create mode 100644 "51 \347\250\213\350\210\234/20230905.md" create mode 100644 "51 \347\250\213\350\210\234/20230907.md" rename "51 \347\250\213\350\210\234/20230910.md" => "51 \347\250\213\350\210\234/20230908.md" (85%) create mode 100644 "51 \347\250\213\350\210\234/20230912.md" diff --git "a/51 \347\250\213\350\210\234/20230905.md" "b/51 \347\250\213\350\210\234/20230905.md" new file mode 100644 index 0000000..38fdcf4 --- /dev/null +++ "b/51 \347\250\213\350\210\234/20230905.md" @@ -0,0 +1,43 @@ +## 开学第一课 + +#### 总结大一以及大二的学需要学的知识以及方向 + + $\textcolor{red}{大一:主打理论知识,学习基础知识,打下大二的基础}$ + + $\textcolor{red}{大二:实际应用(实操)}$ + + $\textcolor{red}{}$1、学习MySQL高级语言 + + 2、JavaScript(Ajax) + + 3、MVC框架(全称:model view controller) + + 以上为大二上学期所需要学习的内容 + + $\textcolor{red}{大二下:}$ + + 1、node.js + + 2、Vue.js ----简化开发,有UI框架配合 + + (1,2为前端) + + 3、Spring boot框架 + + $\textcolor{red}{大二下实训:}$ + + 1、Linux服务器 + + 2、项目周可能实现的技术:中间件、签权:鉴别权限 + + 3、小程序:app移动端开发 + + $\textcolor{red}{知识普及}$ + + 技术栈: + + 一个项目要求用什么技术实现,可以称为技术选型(选方案) + + 技能树: + + 一个人具备的技能,称为技能树(通俗来讲就是一个人的天赋加点) \ No newline at end of file diff --git "a/51 \347\250\213\350\210\234/20230907.md" "b/51 \347\250\213\350\210\234/20230907.md" new file mode 100644 index 0000000..e5d50b1 --- /dev/null +++ "b/51 \347\250\213\350\210\234/20230907.md" @@ -0,0 +1,14 @@ +## 数据库的范式 + +2023年9月7日 + +1.第一范式: + 要求字段的内容,不可再分割,为的是保证数据的原子性 + +2.第二范式:要求在满足第一范式的基础上,要求非主键字段要完全依赖主键(非主键,要依赖整个联合主键)而不能只依赖部分 + +3.第三范式:满足第二范式的前提上,要求,非主键属性要直接依赖于主键,而不能出现传递依赖 + +#### 注意 + +实际开发不会完全按照范式来设计,因为需求不一样,有时会故意反范式 \ No newline at end of file diff --git "a/51 \347\250\213\350\210\234/20230910.md" "b/51 \347\250\213\350\210\234/20230908.md" similarity index 85% rename from "51 \347\250\213\350\210\234/20230910.md" rename to "51 \347\250\213\350\210\234/20230908.md" index 1dac5b5..d030ab4 100644 --- "a/51 \347\250\213\350\210\234/20230910.md" +++ "b/51 \347\250\213\350\210\234/20230908.md" @@ -1,20 +1,5 @@ # 笔记 -## 数据库的范式 - -2023年9月7日 - -1.第一范式: - 要求字段的内容,不可再分割,为的是保证数据的原子性 - -2.第二范式:要求在满足第一范式的基础上,要求非主键字段要完全依赖主键(非主键,要依赖整个联合主键)而不能只依赖部分 - -3.第三范式:满足第二范式的前提上,要求,非主键属性要直接依赖于主键,而不能出现传递依赖 - -#### 注意 - -实际开发不会完全按照范式来设计,因为需求不一样,有时会故意反范式 - ## 数据、逻辑、物理模型 2023年9月8日 diff --git "a/51 \347\250\213\350\210\234/20230912.md" "b/51 \347\250\213\350\210\234/20230912.md" new file mode 100644 index 0000000..cb386d5 --- /dev/null +++ "b/51 \347\250\213\350\210\234/20230912.md" @@ -0,0 +1,150 @@ +# 作业 + +```mysql +/*==============================================================*/ +/* DBMS name: MySQL 5.0 */ +/* Created on: 2023-09-12 11:33:36 */ +/*==============================================================*/ + + +drop table if exists Commenttype; + +drop table if exists comment; + +drop table if exists commentssection; + +drop table if exists country; + +drop table if exists language; + +drop table if exists movie; + +drop table if exists movieteam; + +drop table if exists movietypes; + +/*==============================================================*/ +/* Table: Commenttype */ +/*==============================================================*/ +create table Commenttype +( + Commenttype_id int not null auto_increment, + comment_id int not null, + Commenttype_name varchar(10) not null, + primary key (Commenttype_id) +); + +/*==============================================================*/ +/* Table: comment */ +/*==============================================================*/ +create table comment +( + comment_id int not null auto_increment, + comment_user varchar(10) not null, + comment_time datetime not null, + comment_content varchar(255) not null, + primary key (comment_id) +); + +/*==============================================================*/ +/* Table: commentssection */ +/*==============================================================*/ +create table commentssection +( + commentssection_id int not null auto_increment, + movie_id int not null, + commentssection_theme varchar(20) not null, + commentssection_source varchar(5) not null, + commentssection_time datetime not null, + primary key (commentssection_id) +); + +/*==============================================================*/ +/* Table: country */ +/*==============================================================*/ +create table country +( + country_id int not null auto_increment, + country_name varchar(10) not null, + primary key (country_id) +); + +/*==============================================================*/ +/* Table: language */ +/*==============================================================*/ +create table language +( + language_id int not null auto_increment, + language varchar(10) not null, + primary key (language_id) +); + +/*==============================================================*/ +/* Table: movie */ +/*==============================================================*/ +create table movie +( + movie_id int not null auto_increment, + movietypes_id int not null, + country_id int not null, + comment_id int not null, + language_id int not null, + movie_name varchar(20) not null, + movie_time int not null, + movie_alias varchar(20) not null, + movie_data datetime not null, + TMDB varchar(20) not null, + movie_intro varchar(255) not null, + movie_awards varchar(100) not null, + movie_score decimal(2,1) not null, + primary key (movie_id) +); + +/*==============================================================*/ +/* Table: movieteam */ +/*==============================================================*/ +create table movieteam +( + movieteam_id int not null auto_increment, + movie_id int not null, + movieteam_name varchar(10) not null, + movieteam_age char(1) not null, + movieteam_status varchar(10) not null, + primary key (movieteam_id) +); + +/*==============================================================*/ +/* Table: movietypes */ +/*==============================================================*/ +create table movietypes +( + movietypes_id int not null auto_increment, + movietypes_name varchar(5) not null, + primary key (movietypes_id) +); + +alter table Commenttype add constraint FK_Relationship_5 foreign key (comment_id) + references comment (comment_id) on delete restrict on update restrict; + +alter table commentssection add constraint FK_Relationship_7 foreign key (movie_id) + references movie (movie_id) on delete restrict on update restrict; + +alter table movie add constraint FK_Relationship_1 foreign key (movietypes_id) + references movietypes (movietypes_id) on delete restrict on update restrict; + +alter table movie add constraint FK_Relationship_2 foreign key (country_id) + references country (country_id) on delete restrict on update restrict; + +alter table movie add constraint FK_Relationship_3 foreign key (language_id) + references language (language_id) on delete restrict on update restrict; + +alter table movie add constraint FK_Relationship_4 foreign key (comment_id) + references comment (comment_id) on delete restrict on update restrict; + +alter table movieteam add constraint FK_Relationship_6 foreign key (movie_id) + references movie (movie_id) on delete restrict on update restrict; + + +``` + +![2023-09-12_113702](C:\Users\Administrator\Desktop\2023-09-12_113702.png) \ No newline at end of file -- Gitee