您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页mysql日期/时间转换为字符串

mysql日期/时间转换为字符串

来源:化拓教育网

将日期时间2016-05-13 16:07:50转化为字符串20160513

date_format

select phone,  date_format(time, '%Y%m%d%H%i%s') from   user   where   phone='xxxxxxxx'   #20160513160750
select phone,  date_format(time, '%Y%m%d') from   user   where   phone='xxxxxxxx'                #20160513

转载于:https://www.cnblogs.com/dengyg2001/p/5966292.html

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务