From 21db5295284b04e0130d85d8ade9559498cf0ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8F=91=E6=A7=90?= <11785178+wmm1004lsp@user.noreply.gitee.com> Date: Tue, 24 Oct 2023 03:59:49 +0000 Subject: [PATCH] =?UTF-8?q?52=20=E7=8E=8B=E5=8F=91=E6=A7=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王发槐 <11785178+wmm1004lsp@user.noreply.gitee.com> --- .../2023-10-23.md" | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 "52 \347\216\213\345\217\221\346\247\220/2023-10-23.md" diff --git "a/52 \347\216\213\345\217\221\346\247\220/2023-10-23.md" "b/52 \347\216\213\345\217\221\346\247\220/2023-10-23.md" new file mode 100644 index 0000000..06be9f3 --- /dev/null +++ "b/52 \347\216\213\345\217\221\346\247\220/2023-10-23.md" @@ -0,0 +1,13 @@ +~~~sql +笔记 +substring_index(str,'分界字符',n) -- 返回从字符串str截取到第n个分界符的字符串,当n大于1从左到右,小于1从右到左 +curdate() -- 返回当前日期 +curtime() -- 返回当前时间 +now() -- 返回当前时间日期 +year(date) -- 获取指定date的年份 +month(date) -- 获取指定date的月份 +day(date) -- 获取指定date的日期 +``` + +~~~ + -- Gitee