From d218639d075e203fdf93245095fe6ae94c78dfb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E7=8E=B2?= <1516489926@qq.com> Date: Thu, 26 Oct 2023 00:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E4=B9=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20231025 \345\244\215\344\271\240.md" | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 "29 \350\267\257\347\216\262/20231025 \345\244\215\344\271\240.md" diff --git "a/29 \350\267\257\347\216\262/20231025 \345\244\215\344\271\240.md" "b/29 \350\267\257\347\216\262/20231025 \345\244\215\344\271\240.md" new file mode 100644 index 0000000..0391438 --- /dev/null +++ "b/29 \350\267\257\347\216\262/20231025 \345\244\215\344\271\240.md" @@ -0,0 +1,54 @@ +## 笔记 + +一、数据库设计方法 + +1.E-R图(实体关系图) + +2.软件powerdesigner(概念模型、逻辑模型、物理模型) + +二、sku、spu + +三、视图 view + +四、单行函数 + +```mysql +concat()拼接 +concat_ws()拼接带字符 +round()四舍五入 +left()向左截取 +right()向右截取 +substring() 指定截取 +replace()替换 +trim()去除两端的空格 +ltrim()去除左边 +rtrim()去除右边的空格 +length()显示长度 +floor()向下取整 +ceil()向上去整 +week()取星期 +upper()变大写 +lower()变小写 +abs()取绝对值 +truncate()直接截取小数点 +``` + + + +五、存储过程 procedure + +六、判断语句(if/case) + +七、循环语句(loop、while) + +八、存储函数 function + +九、游标 cursor + +十、触发器 trigger + +十一、窗口函数 over(partition by 列名) + +十二、索引 index + +十三、事务 transaction \ No newline at end of file -- Gitee