From 31e1449de78411e95997655b0700b2bdf3e25825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E5=AD=A6=E6=96=B0?= <2781716479@qq.com> Date: Tue, 24 Oct 2023 03:45:36 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8F=B2=E5=AD=A6=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 史学新 <2781716479@qq.com> --- .../20231024 \347\254\224\350\256\260.md" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "47 \345\217\262\345\255\246\346\226\260/20231024 \347\254\224\350\256\260.md" diff --git "a/47 \345\217\262\345\255\246\346\226\260/20231024 \347\254\224\350\256\260.md" "b/47 \345\217\262\345\255\246\346\226\260/20231024 \347\254\224\350\256\260.md" new file mode 100644 index 0000000..a6cdb7d --- /dev/null +++ "b/47 \345\217\262\345\255\246\346\226\260/20231024 \347\254\224\350\256\260.md" @@ -0,0 +1,11 @@ +```sql +笔记 +substring_index(str,'分界字符',n) -- 返回从字符串str截取到第n个分界符的字符串,当n大于1从左到右,小于1从右到左 +curdate() -- 返回当前日期 +curtime() -- 返回当前时间 +now() -- 返回当前时间日期 +year(date) -- 获取指定date的年份 +month(date) -- 获取指定date的月份 +day(date) -- 获取指定date的日期 +``` + -- Gitee