From 3e9789f4795c61cea6bd715ce95cfc6b58ad4953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=AD=A6=E5=AE=89?= <2820601363@qq.com> Date: Tue, 12 Sep 2023 19:51:57 +0800 Subject: [PATCH] zy --- ...65\345\275\261\344\277\241\346\201\257.md" | 122 ++++++++++++++++++ .../\347\254\224\350\256\2601.md" | 13 ++ .../\347\254\224\350\256\2602.md" | 17 +++ .../\347\254\224\350\256\2603.md" | 7 + .../\347\254\224\350\256\2604.md" | 9 ++ 5 files changed, 168 insertions(+) create mode 100644 "40 \346\227\266\345\255\246\345\256\211/\347\224\265\345\275\261\344\277\241\346\201\257.md" create mode 100644 "40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2601.md" create mode 100644 "40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2602.md" create mode 100644 "40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2603.md" create mode 100644 "40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2604.md" diff --git "a/40 \346\227\266\345\255\246\345\256\211/\347\224\265\345\275\261\344\277\241\346\201\257.md" "b/40 \346\227\266\345\255\246\345\256\211/\347\224\265\345\275\261\344\277\241\346\201\257.md" new file mode 100644 index 0000000..6ec135d --- /dev/null +++ "b/40 \346\227\266\345\255\246\345\256\211/\347\224\265\345\275\261\344\277\241\346\201\257.md" @@ -0,0 +1,122 @@ +~~~mysql + +CREATE DATABASE aa; +use aa; +/*==============================================================*/ +/* DBMS name: MySQL 5.0 */ +/* Created on: 2023-09-12 11:28:33 */ +/*==============================================================*/ + + +drop table if exists a; + +drop table if exists dianying; + +drop table if exists doubandianying; + +drop table if exists xieyingping; + +drop table if exists yanyuanxinxi; + +drop table if exists ²é¿´ÆÀÂÛ; + +/*==============================================================*/ +/* Table: a */ +/*==============================================================*/ +create table a +( + imdb_id varchar(20) not null, + IMDb varchar(20) not null, + dy_name varchar(20) not null, + primary key (imdb_id, IMDb) +); + +/*==============================================================*/ +/* Table: dianying */ +/*==============================================================*/ +create table dianying +( + IMDb varchar(20) not null, + wz varchar(20), + dy_name varchar(20) not null, + dy_lx varchar(20) not null, + zpgj varchar(20) not null, + dy_language varchar(20) not null, + sy_time date not null, + time time not null, + dy_ym varchar(20), + primary key (IMDb) +); + +/*==============================================================*/ +/* Table: doubandianying */ +/*==============================================================*/ +create table doubandianying +( + wz varchar(20) not null, + mc varchar(20) not null, + primary key (wz) +); + +/*==============================================================*/ +/* Table: xieyingping */ +/*==============================================================*/ +create table xieyingping +( + re_id int not null auto_increment, + IMDb varchar(20), + re_evaluate varchar(20) not null, + re_headline varchar(20) not null, + re_text varchar(999) not null, + primary key (re_id) +); + +/*==============================================================*/ +/* Table: yanyuanxinxi */ +/*==============================================================*/ +create table yanyuanxinxi +( + imdb_id varchar(20) not null, + name varchar(20) not null, + sex char(1) not null, + constellation varchar(20) not null, + birthday varchar(20) not null, + birthplace varchar(20) not null, + occupation varchar(20) not null, + more_name varchar(20) not null, + family varchar(20) not null, + introduction varchar(200) not null, + primary key (imdb_id) +); + +/*==============================================================*/ +/* Table: ²é¿´ÆÀÂÛ */ +/*==============================================================*/ +create table ²é¿´ÆÀÂÛ +( + re_id1 char(10) not null, + IMDb varchar(20), + re_evaluate varchar(20) not null, + re_name char(10) not null, + re_time char(10) not null, + re_text1 char(10) not null, + reply char(10) not null, + primary key (re_id1) +); + +alter table a add constraint FK_Relationship_2 foreign key (imdb_id) + references yanyuanxinxi (imdb_id) on delete restrict on update restrict; + +alter table a add constraint FK_Relationship_5 foreign key (IMDb) + references dianying (IMDb) on delete restrict on update restrict; + +alter table dianying add constraint FK_Relationship_1 foreign key (wz) + references doubandianying (wz) on delete restrict on update restrict; + +alter table xieyingping add constraint FK_Relationship_3 foreign key (IMDb) + references dianying (IMDb) on delete restrict on update restrict; + +alter table ²é¿´ÆÀÂÛ add constraint FK_Relationship_4 foreign key (IMDb) + references dianying (IMDb) on delete restrict on update restrict; +~~~ + diff --git "a/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2601.md" "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2601.md" new file mode 100644 index 0000000..40394c1 --- /dev/null +++ "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2601.md" @@ -0,0 +1,13 @@ +数据库高级 (MySQL) + +JavaScript (Ajax) + +MVC 框架 (Maven,spring,springMvc,Mybatis)java经典框架 俗称SSM + +node.js + +vue.js 简化开发 有UI框架配合 + +springboot (Redis,webAPI) + +node.js 和 vue.js 属于前端 \ No newline at end of file diff --git "a/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2602.md" "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2602.md" new file mode 100644 index 0000000..352e277 --- /dev/null +++ "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2602.md" @@ -0,0 +1,17 @@ +# 表与表之间的关系: + +一对一的关系:将其中任意表的主键放到另一个表当外键 + +一对多的关系:将一所在的表的主键放到多的表当外键 + +多对多的关系:必须建立第三张表,将前两个表主键当外键 + +# E-R图 + +概念: + +ER图:实体关系图,指**实体,关系,属性**三个具体概念的概括 + +要素: + +3要素:实体(表),属性(字段)和关系(类似外键) \ No newline at end of file diff --git "a/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2603.md" "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2603.md" new file mode 100644 index 0000000..04b7519 --- /dev/null +++ "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2603.md" @@ -0,0 +1,7 @@ +# 数据库的范式 + +第一范式:要求字段的内容,不可再分割为保证数据的原子性 + +第二范式:要求在满足第一范式的基础上要求非主键字段要完全依赖主键(非主键要依赖整个联合主键)而不能只依赖部分 + +第三范式:满足第二范式的前提下要求非主键属性要直接依赖于主键 \ No newline at end of file diff --git "a/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2604.md" "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2604.md" new file mode 100644 index 0000000..b14024c --- /dev/null +++ "b/40 \346\227\266\345\255\246\345\256\211/\347\254\224\350\256\2604.md" @@ -0,0 +1,9 @@ +# Power Designer: + +第一步:创建概念模型(类似ER图)CDM + +第二步:转换成逻辑模型 LDM + +第三步:转换成物理模型 PDM + +第四步:生成 DDL \ No newline at end of file -- Gitee