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 0000000000000000000000000000000000000000..38fdcf4201732b23820659b86f446252c8896c16 --- /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 0000000000000000000000000000000000000000..e5d50b1ad3d3b77c265c2664ff9c1355e483f424 --- /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 1dac5b57cf9f604e7972762f5ea9d9bcddc7c8e5..d030ab4e9e9e7b33f72c3f6a11c4e9b34896601c 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 0000000000000000000000000000000000000000..cb386d5f42d4ad391ad242c2c151fbb49921851c --- /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