mytable
+-----------+----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+----------+------+-----+---------+----------------+
| id | int(255) | NO | PRI | NULL | auto_increment |
| date | date | NO | | NULL | |
| answer_id | int(255) | NO | MUL | NULL | |
| count | int(255) | YES | | NULL | |
+-----------+----------+------+-----+---------+----------------+
SQL:
INSERT INTO mytable ('date', 'answer_id', 'count')
VALUES ('2013-12-05', '4', '1');
给我 ERROR 1064
最佳答案
关于mysql插入自动增量和日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21297617/