Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个表(事件)只有 1 个提交(日期):
date 2013-11-03 15:11:05 2013-11-04 15:11:05 2013-11-05 15:11:05
现在我正在尝试这个查询,就像这样;
$insert = mysql_query("INSERT INTO events VALUES (2013-06-27 12:00:00)");
有什么理由不更新表格?
您需要在日期前后加上引号而错过了values关键字
values
INSERT INTO events values ('2013-06-27 12:00:00')