From 76c82915adf51a20e878230c61bd4fafa7a98ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=BD=E6=99=9F=E5=AE=B8?= <11785147+demon-cat-fruit-orange@user.noreply.gitee.com> Date: Tue, 24 Oct 2023 03:53:21 +0000 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 Signed-off-by: 施晟宸 <11785147+demon-cat-fruit-orange@user.noreply.gitee.com> --- ...15\344\271\240\347\254\224\350\256\260.md" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "22 \346\226\275\346\231\237\345\256\270/20231023\345\244\215\344\271\240\347\254\224\350\256\260.md" diff --git "a/22 \346\226\275\346\231\237\345\256\270/20231023\345\244\215\344\271\240\347\254\224\350\256\260.md" "b/22 \346\226\275\346\231\237\345\256\270/20231023\345\244\215\344\271\240\347\254\224\350\256\260.md" new file mode 100644 index 0000000..b3a955d --- /dev/null +++ "b/22 \346\226\275\346\231\237\345\256\270/20231023\345\244\215\344\271\240\347\254\224\350\256\260.md" @@ -0,0 +1,24 @@ +```sql +# 复习笔记 + 1. er图 2. CDM模型 3. 范式(略过) 4. 视图 5. 常用函数 + + 字符串 + length() -- 返回字符串长度,注意:一个汉字字符集长度是3 + concat(x,y,...) -- 拼接所有字符串 + concat_ws('符号',x,y,...) -- 指定连接符来拼接字符串 + replace(str,x,y) -- 改字符串,将字符串str中的x改成y + left(str,x) --从x位置取str结果 + right(str,x) --同理 + substring_index(str,'分界字符',len) -- 返回从字符串str截取到第len个分界符的字符串,当len大于1时从左到右,小于1时从右到左 + + 日期函数 + curdate() -- 返回当前日期 + curtime() -- 返回当前时间 + now() -- 返回当前时间日期 + year(date) -- 获取指定date的年份 + month(date) -- 获取指定date的月份 + day(date) -- 获取指定date的日期 + + + +``` -- Gitee