select id, phone,time,year(time),month(time), DAY(time),TIME(time) from user where phone='xxxxxx' #分别取年、月、日、时间
select id, phone,time from user where phone='xxxxxx' #
select id, phone,time,year(time) from user where phone='xxxxxx' #分别取年
select id, phone,time,month(time) from user where phone='xxxxxx' #分别取月
select id, phone,time,DAY(time) from user where phone='xxxxxx' #分别取日
select id, phone,time,TIME(time) from user where phone='xxxxxx' #分别取时间
mysql取年、月、日、时间
转载
无语言基础,自学python所做的各种笔记,欢迎大牛指点.
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:mysql匹配模式
下一篇:mysql改变字符串的大小写
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
将任务栏图标设置为只显示小图标
任务栏图标修改
任务栏 小图标