
mysql有哪些时间语法,如何将当前时间插入数据库?下面web建站小编给大家简单介绍一下具体语法!
mysql时间方法:
| 方法名 | 格式 | 
|---|---|
| current_timestamp | 2023-02-10 12:11:11 | 
| current_time | 12:11:11 | 
| current_data | 2023-02-10 | 
| now() | 2023-02-10 12:11:11 | 
| curdate() | 2023-02-10 | 
| curtime() | 12:11:11 | 
将当前时间插入数据库:
insert into wp_post(id,pub_time) values (1,CURRENT_TIMESTAMP);
wordpress如何利用current_time函数获取当前时间
标签: curdate, current_data, current_time, current_timestamp, curtime, 时间语法
上面是“mysql有哪些时间语法”的全面内容,想了解更多关于 mysql 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_3588.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

 Cube UI前端UI组件库中文文档官网介绍
 飞书多维表格:一款强大的在线业务管理工具,支持表格、看板、日历、甘特图等
 浮云音频降噪