未读消息 : 忽略
查看全部
具体实验案例如下所示:
selectstr_to_date('2016.08.22 13:46:12', '%Y.%m.%d %h:%i:%s'); --输出空selectstr_to_date('08.09.2008 08:09:30', '%m.%d.%Y %h:%i:%s'); --输出'2008-08-09 08:09:30'
selectstr_to_date('2016.08.22 13:46:12', '%Y.%m.%d %h:%i:%s'); --输出空
selectstr_to_date('08.09.2008 08:09:30', '%m.%d.%Y %h:%i:%s'); --输出'2008-08-09 08:09:30'
处理方法:将第二句中的%h修改为%H后输出结果正常:
selectstr_to_date('2016.08.22 13:46:12', '%Y.%m.%d %H:%i:%s');
在线客服
在线客服服务时间:9:00-18:00
客服热线
198991158157*24小时客服服务热线
关注微信