xampp将日期格式转换为Mysql数据库 [英] date format to Mysql database using xampp
本文介绍了xampp将日期格式转换为Mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用jQuery日历来让用户以"2011-OCT-04"格式插入他/她的生日,但是当将其插入我的数据库时,我发现它的值为"0000-00-00"
有什么想法吗?? !!!
这是 http://dc426.4shared.com/img/76-nVCx_/的屏幕截图s7/0.10678574685889708/date.PNG [
I am using jQuery calender to let user insert his/her birthday in this format "2011-OCT-04" but when inserting it into my database I found it''s value to be "0000-00-00"
Any ideas??!!!
This is screen shot http://dc426.4shared.com/img/76-nVCx_/s7/0.10678574685889708/date.PNG[^]
推荐答案
默认的mysql日期格式为"YYYY-MM-DD",这就是为什么它不会在MySql数据库中插入的原因.
Hi,
Default mysql date format is "YYYY-MM-DD", that''s why it will not inserted inti MySql database.
这篇关于xampp将日期格式转换为Mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文