Home > Database > Mysql Tutorial > mysql异常--Incorrect datetime value: '2014-04-14_MySQL

mysql异常--Incorrect datetime value: '2014-04-14_MySQL

WBOY
Release: 2016-05-31 08:47:07
Original
1535 people have browsed it

          查了一些资料,很多人都说是mysql版本的问题。其实还有可能是另外一个问题。


          str_to_date函数中的大小写一定要写对select str_to_date(vote_time,'%Y-%m-%d %T'),如果写成 '%Y-%M-%D %T ' 就会出现那种错误。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template