当前位置:网站首页>MySQL 一些函数
MySQL 一些函数
2022-08-03 05:11:00 【张童瑶】
时间占位符
年(四位数字) | 年(后两位数字) | 月 | 日 | 小时(24进制) | 小时(12进制) | 分钟 | 秒 |
---|---|---|---|---|---|---|---|
%Y | %y | %m | %d | %H | %h | %i | %s或%S |
时间函数
#时间格式化字符 年月日时分秒
'%Y-%m-%d-%H-%i-%s'
#时间格式化字符 年月日
'%Y-%m-%d- #加1天 select date_format(now(),'%Y-%m-%d') + interval 1 day #加1小时 select date_format(now(),'%Y-%m-%d-%H-%i-%s') + interval 1 hour #加一分钟 select date_format(now(),'%Y-%m-%d-%H-%i-%s') + interval 1 minute
有时间整理
地址:https://blog.csdn.net/yamadeee/article/details/80137780
https://blog.csdn.net/weixin_61503139/article/details/124404562
https://www.csdn.net/tags/NtDaQg2sMjE2Ny1ibG9n.html
http://www.136.la/mysql/show-46440.html
我的其他文章
我的网站
边栏推荐
猜你喜欢
随机推荐
junit总结
三角形个数
1059 C语言竞赛 (20 分)(C语言)
Makefile 遍历子目录模板
背压机制
-飞机大战-
浅谈函数递归汉诺塔
-一尺之棰-
Djiango第三次培训
用pulp库解决运输问题【详细】
Pr第三次培训笔记
私有变量(private) 【详细+易懂】
Install IIS services (Internet Information Services (Internet Information Services, abbreviated IIS, Internet Information Services)
二叉树的合并[C]
-角谷猜想-
7.16(6)
Makefile语法
Benchmark 第一篇 了解Benchmark
Response 重写设置返回值
在树莓派上搭建属于自己的网页(1)