热线电话:13121318867

登录
2021-04-06 阅读量: 615
mysql如何只获取时间的年月日

mysql只获取时间的年月日用date_format函数

SELECT now(); - ##返回2021-04-06 11:49:34


SELECT date_format(now(),'%Y-%m-%d'); #返回2021-04-06






108.9473
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子