From 58e89dba1871abe7133f3466a80b2b4f2caa6c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=BF=97=E5=BC=BA?= <3165279696@qq.com> Date: Sat, 7 Sep 2024 15:34:52 +0000 Subject: [PATCH 1/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20work=5F9=5F7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\345\210\230\345\277\227\345\274\272/work_9_7/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\345\210\230\345\277\227\345\274\272/work_9_7/.keep" diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_7/.keep" "b/\345\210\230\345\277\227\345\274\272/work_9_7/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6663a9064cbdfc8c0550071d8b8406753dedafff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E4=BF=8A=E6=9D=B0?= <3130017146@qq.com> Date: Sat, 7 Sep 2024 23:38:22 +0800 Subject: [PATCH 2/5] 9.7 --- ...64\347\220\206\347\254\224\350\256\260.md" | 39 ++++++++++++++++++ .../work_9_4/.keep" | 0 .../work_9_4/zuoye.md" | 0 ...210\252\345\233\276 2024-09-04 204000.png" | Bin ...210\252\345\233\276 2024-09-04 204513.png" | Bin ...210\252\345\233\276 2024-09-04 205502.png" | Bin ...210\252\345\233\276 2024-09-04 211723.png" | Bin 7 files changed, 39 insertions(+) create mode 100644 "\345\210\230\345\277\227\345\274\272/2023_9_7/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" rename "\345\210\230\345\277\227\345\274\272/work_9_7/.keep" => "\345\210\230\345\277\227\345\274\272/work_9_4/.keep" (100%) rename "\345\210\230\345\277\227\345\274\272/zuoye.md" => "\345\210\230\345\277\227\345\274\272/work_9_4/zuoye.md" (100%) rename "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" => "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" (100%) rename "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" => "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" (100%) rename "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" => "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" (100%) rename "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" => "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" (100%) diff --git "a/\345\210\230\345\277\227\345\274\272/2023_9_7/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" "b/\345\210\230\345\277\227\345\274\272/2023_9_7/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" new file mode 100644 index 0000000..dda3975 --- /dev/null +++ "b/\345\210\230\345\277\227\345\274\272/2023_9_7/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" @@ -0,0 +1,39 @@ +# 2023.9.7整理笔记 + +### 1.下载安装Snipaste截图 + +![image-20240907224248035](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907224248035.png) + +下载网址:www.Snipaste.com + + + +### 2.下载安装note.js + +![image-20240907224352905](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907224352905.png) + +下载网址:[Node.js — 在任何地方运行 JavaScript (nodejs.org) + +[](https://nodejs.org/zh-cn) + + + +### 3.Picgo设置 + +##### 1.点击插件设置,安装gitee-uploader 1.1.2版本 + +![image-20240907224750849](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907224750849.png) + +##### 2.在设置中进行勾选 + +![image-20240907230626317](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907230626317.png) + +3.在gitee创建一个新的笔记仓库,并设立私人令牌 + +4.上传gitee的设置 + +![image-20240907232758938](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907232758938.png) + +5.提交到gitee仓库 + +![image-20240907233027222](C:\Users\86178\AppData\Roaming\Typora\typora-user-images\image-20240907233027222.png) \ No newline at end of file diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_7/.keep" "b/\345\210\230\345\277\227\345\274\272/work_9_4/.keep" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/work_9_7/.keep" rename to "\345\210\230\345\277\227\345\274\272/work_9_4/.keep" diff --git "a/\345\210\230\345\277\227\345\274\272/zuoye.md" "b/\345\210\230\345\277\227\345\274\272/work_9_4/zuoye.md" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/zuoye.md" rename to "\345\210\230\345\277\227\345\274\272/work_9_4/zuoye.md" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" "b/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" rename to "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" "b/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" rename to "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" "b/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" rename to "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" diff --git "a/\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" "b/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" rename to "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" -- Gitee From 99ae1032880388752f58f027cdddb129ffecbe09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E4=BF=8A=E6=9D=B0?= <3130017146@qq.com> Date: Sun, 8 Sep 2024 21:00:40 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=88=98=E5=BF=97=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 .../zuoye.md" | 0 ...210\252\345\233\276 2024-09-04 204000.png" | Bin ...210\252\345\233\276 2024-09-04 204513.png" | Bin ...210\252\345\233\276 2024-09-04 205502.png" | Bin ...210\252\345\233\276 2024-09-04 211723.png" | Bin ...64\347\220\206\347\254\224\350\256\260.md" | 0 ...37\350\203\275\351\234\200\346\261\202.md" | 147 ++++++++++++++++++ 8 files changed, 147 insertions(+) rename "\345\210\230\345\277\227\345\274\272/work_9_4/.keep" => "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/.keep" (100%) rename "\345\210\230\345\277\227\345\274\272/work_9_4/zuoye.md" => "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/zuoye.md" (100%) rename "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" => "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" (100%) rename "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" => "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" (100%) rename "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" => "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" (100%) rename "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" => "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" (100%) rename "\345\210\230\345\277\227\345\274\272/2023_9_7/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" => "\345\210\230\345\277\227\345\274\272/0907 snipaste\345\222\214note.js\347\255\211\344\270\213\350\275\275\345\256\211\350\243\205/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" (100%) create mode 100644 "\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_4/.keep" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/.keep" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/work_9_4/.keep" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/.keep" diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_4/zuoye.md" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/zuoye.md" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/work_9_4/zuoye.md" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/zuoye.md" diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204000.png" diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 204513.png" diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 205502.png" diff --git "a/\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" "b/\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/work_9_4/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" rename to "\345\210\230\345\277\227\345\274\272/0904 \345\210\235\346\255\245\350\256\276\350\256\241cpm,ldm,pdm\346\250\241\345\236\213/\345\261\217\345\271\225\346\210\252\345\233\276 2024-09-04 211723.png" diff --git "a/\345\210\230\345\277\227\345\274\272/2023_9_7/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" "b/\345\210\230\345\277\227\345\274\272/0907 snipaste\345\222\214note.js\347\255\211\344\270\213\350\275\275\345\256\211\350\243\205/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" similarity index 100% rename from "\345\210\230\345\277\227\345\274\272/2023_9_7/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" rename to "\345\210\230\345\277\227\345\274\272/0907 snipaste\345\222\214note.js\347\255\211\344\270\213\350\275\275\345\256\211\350\243\205/2023.9.7\346\225\264\347\220\206\347\254\224\350\256\260.md" diff --git "a/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" new file mode 100644 index 0000000..c3695f1 --- /dev/null +++ "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" @@ -0,0 +1,147 @@ +# 一、学校管理的功能需求 + + + +### 需求分析:先创建学生数据表,再创建类型表和功能表,成员类型表中的不同类型成员对应其功能 + + + +### 1.利用PowerDisgner创建出CDM模型 + +![image-20240908111144671](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20240908111144671.png) + + + +### 2.生成LDM模型 + +![image-20240908111326966](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20240908111326966.png) + + + +### 3.生成PDM模型 + +![image-20240908111500244](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20240908111500244.png) + + + +### 4.生成sql + +```sql +/*==============================================================*/ +/* DBMS name: MySQL 5.0 */ +/* Created on: 2024-09-08 11:03:52 */ +/*==============================================================*/ + + +drop table if exists RBAC_info; + +drop table if exists has; + +drop table if exists info; + +drop table if exists links; + +drop table if exists role_info; + +/*==============================================================*/ +/* Table: RBAC_info */ +/*==============================================================*/ +create table RBAC_info +( + RBAC_id int not null, + RBAC_name varchar(11), + primary key (RBAC_id) +); + +/*==============================================================*/ +/* Table: has */ +/*==============================================================*/ +create table has +( + RBAC_id int not null, + role_id int not null, + primary key (RBAC_id, role_id) +); + +/*==============================================================*/ +/* Table: info */ +/*==============================================================*/ +create table info +( + info_id int not null, + role_id int not null, + name varchar(11), + sex varchar(11), + age numeric(4,0), + address varchar(11), + primary key (info_id) +); + +/*==============================================================*/ +/* Table: links */ +/*==============================================================*/ +create table links +( + RBAC_id int not null, + info_id int not null, + primary key (RBAC_id, info_id) +); + +/*==============================================================*/ +/* Table: role_info */ +/*==============================================================*/ +create table role_info +( + role_id int not null, + role_name varchar(11), + primary key (role_id) +); + +alter table has add constraint FK_has foreign key (RBAC_id) + references RBAC_info (RBAC_id) on delete restrict on update restrict; + +alter table has add constraint FK_has2 foreign key (role_id) + references role_info (role_id) on delete restrict on update restrict; + +alter table info add constraint FK_link foreign key (role_id) + references role_info (role_id) on delete restrict on update restrict; + +alter table links add constraint FK_links foreign key (RBAC_id) + references RBAC_info (RBAC_id) on delete restrict on update restrict; + +alter table links add constraint FK_links2 foreign key (info_id) + references info (info_id) on delete restrict on update restrict; + + +``` + +### 5.对表添加数据 + +```sql +INSERT into role_info (role_id,role_name) VALUES +(1,'学生'), +(2,'教师'), +(3,'辅导员'); + +INSERT INTO rbac_info (RBAC_id,RBAC_name) VALUES +(1,'添加成绩'), +(2,'删除成绩'), +(3,'修改成绩'), +(4,'查看成绩'), +(5,'修改信息'), +(6,'修改密码'); + + +INSERT INTO info (info_id,role_id,name,sex,age,address) VALUES +(1,1,'张三','男',13,'福州'), +(2,2,'李四','女',14,'赣州'), +(3,1,'王五','男',15,'泉州'), +(4,3,'赵六','女',16,'漳州'); +``` + +### + +​ + + + -- Gitee From 8d1dc61f7c8ee75660ea35aa8edfaf5dc0782382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E4=BF=8A=E6=9D=B0?= <3130017146@qq.com> Date: Sun, 8 Sep 2024 21:02:46 +0800 Subject: [PATCH 4/5] 9.8 --- ...\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" index c3695f1..15c4299 100644 --- "a/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" +++ "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" @@ -2,7 +2,7 @@ -### 需求分析:先创建学生数据表,再创建类型表和功能表,成员类型表中的不同类型成员对应其功能 +### 需求分析:先创建学生数据表,再创建类型表和功能表,成员类型表中的不同类型成员对应其功能... -- Gitee From 1f8f0f79f662d1170bd5128f20c0e61c61d79398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E4=BF=8A=E6=9D=B0?= <3130017146@qq.com> Date: Sun, 8 Sep 2024 21:11:13 +0800 Subject: [PATCH 5/5] 9.8 --- ...\204\345\212\237\350\203\275\351\234\200\346\261\202.md" | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git "a/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" index 15c4299..e2fd5c6 100644 --- "a/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" +++ "b/\345\210\230\345\277\227\345\274\272/0908 \345\255\246\346\240\241\347\256\241\347\220\206\345\212\237\350\203\275\351\234\200\346\261\202/\345\255\246\346\240\241\347\256\241\347\220\206\347\232\204\345\212\237\350\203\275\351\234\200\346\261\202.md" @@ -139,9 +139,11 @@ INSERT INTO info (info_id,role_id,name,sex,age,address) VALUES (4,3,'赵六','女',16,'漳州'); ``` -### - ​ +### 使用sql语句进行查询 +```sql +select ro.role,name from role_info on ro.r_id = ac1.r_id join info onac1.a_id = ac.a_id where ro,r_id = 2; +``` -- Gitee