[英]MySQL table 1 filed DATETIME formatted
I have this table (events) just 1 filed (date): 我有这个表(事件)只提交1(日期):
date
2013-11-03 15:11:05
2013-11-04 15:11:05
2013-11-05 15:11:05
Now I'm trying this query exactly like this; 现在我正在尝试这个查询,就像这样;
$insert = mysql_query("INSERT INTO events VALUES (2013-06-27 12:00:00)");
any reason why is not updating the table? 有什么理由不更新表格?
You need quotes around the date and missed the values
keyword 您需要在日期周围引用并错过
values
关键字
INSERT INTO events values ('2013-06-27 12:00:00')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.