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 0000000000000000000000000000000000000000..a6cdb7d87c531c9fe628625c4f3f07c749b1c227 --- /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的日期 +``` +