当前位置:网站首页>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
我的其他文章
我的网站
边栏推荐
猜你喜欢
网络流媒体下载的 10 种方法(以下载 Echo 音乐为例)

一劳永逸解决vs编译器无法使用scanf函数

Redis常用命令

用C语言来实现五子棋小游戏

Install IIS services (Internet Information Services (Internet Information Services, abbreviated IIS, Internet Information Services)

在树莓派上搭建属于自己的网页(1)

第四次培训

idea uses @Autowired annotation to explain the reasons and solutions

机器码介绍

Pr第四次培训笔记
随机推荐
-最低分-
背压机制
JS学习笔记(三)
dataframe插入一列
1069 微博转发抽奖 (20 分)(C语言)
-一尺之棰-
信息编码、存储压缩与密码学
二叉树的合并[C]
编写一个函数 reverse_string(char * string)(两种方法实现)7.26
3n+1问题
Flask Web 报错:
【函数与递归】7.19
Exception (abnormal) and Error (error) difference analysis
阿凡提的难题
breed Web刷机升级详细教材修正编译器固件说明_itkeji.top
D-PHY
初识C语言
idea使用@Autowired注解爆红原因及解决方法
OptionError: ‘Pattern matched multiple keys‘
7.18(7)