From ef5472cd507272159c9729bc84c8b1f4676ec527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=AF=8C?= <2744975513@qq.com> Date: Thu, 7 Sep 2023 12:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...00\345\244\251\347\254\224\350\256\260.md" | 23 +++++++ ...14\345\244\251\347\254\224\350\256\260.md" | 13 ++++ ...00\346\254\241\344\275\234\344\270\232.md" | 60 +++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 "17 \345\221\250\345\257\214/20230905\347\254\254\344\270\200\345\244\251\347\254\224\350\256\260.md" create mode 100644 "17 \345\221\250\345\257\214/20230905\347\254\254\344\272\214\345\244\251\347\254\224\350\256\260.md" create mode 100644 "17 \345\221\250\345\257\214/20230906\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" diff --git "a/17 \345\221\250\345\257\214/20230905\347\254\254\344\270\200\345\244\251\347\254\224\350\256\260.md" "b/17 \345\221\250\345\257\214/20230905\347\254\254\344\270\200\345\244\251\347\254\224\350\256\260.md" new file mode 100644 index 0000000..fda8fbb --- /dev/null +++ "b/17 \345\221\250\345\257\214/20230905\347\254\254\344\270\200\345\244\251\347\254\224\350\256\260.md" @@ -0,0 +1,23 @@ +## 第一课笔记 + +大一:主打理论知识,学习基础知识,打下大二的基础 + +大二:实际应用(实操) + +大二上要学:1.MySQL高级语言 + +​ 2.JavaScript(Ajax) + +​ 3.MVC框架(全称:model view controller) + +大二下要学:1.node.js + +​ 2.Vue.js ----简化开发,有UI框架配合 + +​ 3.Spring boot框架 + +大二下实训:1.Linux服务器 + +​ 2.项目周可能实现的技术:中间件、签权:鉴别权限 + +​ 3.小程序:app移动端开发 \ No newline at end of file diff --git "a/17 \345\221\250\345\257\214/20230905\347\254\254\344\272\214\345\244\251\347\254\224\350\256\260.md" "b/17 \345\221\250\345\257\214/20230905\347\254\254\344\272\214\345\244\251\347\254\224\350\256\260.md" new file mode 100644 index 0000000..f4fdf3a --- /dev/null +++ "b/17 \345\221\250\345\257\214/20230905\347\254\254\344\272\214\345\244\251\347\254\224\350\256\260.md" @@ -0,0 +1,13 @@ +## mysql第二课的笔记 + +建表:多对多的时候,引用第三张表,将前面两张表的主键拿来当第三张表的外键、 + +​ 一对多的时候,将一所在的表的主键放在多的表当外键 + +​ 一对一的时候,将一张表的主键放在另一张表当外键 + +## ER图 + +概念:实体关系图, 是指以实体,关系,属性三个基本概念概括数据的基本结构,从而描述静态数据结构的概念格式 + +要素:实体(表),属性(字段),和关系(类似外键) \ No newline at end of file diff --git "a/17 \345\221\250\345\257\214/20230906\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" "b/17 \345\221\250\345\257\214/20230906\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..cf4de34 --- /dev/null +++ "b/17 \345\221\250\345\257\214/20230906\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,60 @@ +~~~mysql +CREATE DATABASE school charset utf8; +use school; +CREATE TABLE department( +d_id int primary KEY, +d_name VARCHAR(20) +); +CREATE TABLE major( +m_id int PRIMARY KEY, +m_name VARCHAR(20), +d_id int, +foreign key(d_id) references department(d_id) +) +CREATE TABLE class( +c_id int PRIMARY key, +c_name VARCHAR(20), + grade VARCHAR(20), + m_id int, + FOREIGN key(m_id) REFERENCES major(m_id) +) +CREATE TABLE teacher( +t_id int PRIMARY key, +t_name VARCHAR(20), +t_sex VARCHAR(5) +) +CREATE TABLE courses( +cou_id int PRIMARY key, +cou_name VARCHAR(20), +t_id int, +FOREIGN KEY (t_id) REFERENCES teacher(t_id) +) + +CREATE TABLE student( +s_id int PRIMARY key, +s_name VARCHAR(5), +s_sex VARCHAR(2), +c_id int, +FOREIGN key(c_id) REFERENCES class(c_id) +) +CREATE TABLE achievement( +s_id int, +cou_id int, +a_achievement int, +FOREIGN key(s_id) REFERENCES student(s_id), +FOREIGN key(cou_id) REFERENCES courses(cou_id) +) +CREATE TABLE timetable( +classroom_id int PRIMARY key, +ti_week VARCHAR(5), +ti_courses VARCHAR(20), +teacher_name VARCHAR(20) +) +CREATE TABLE classroom( +classroom_id int , +classroom_name VARCHAR(20), +classroom_address VARCHAR(50), +FOREIGN key(classroom_id) REFERENCES timetable(classroom_id) +) +~~~ + -- Gitee