我已经看到其他问题询问同样的事情,但我似乎无法找到解决这个问题的问题。我发布了DESCRIBE [table];
INPUT INTO
和语法错误。
mysql> DESCRIBE committees;
+----------------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------------+-------------+------+-----+---------+-------+
| id | int(11) | NO | PRI | NULL | |
| name | varchar(30) | NO | | NULL | |
| num_of_members | int(11) | NO | | NULL | |
| created | date | NO | | NULL | |
| frequency_of_meeting | varchar(20) | NO | | NULL | |
| president | int(11) | NO | | NULL | |
+----------------------+-------------+------+-----+---------+-------+
6 rows in set (0.01 sec)
mysql> INPUT INTO committees (name, num_of_members, created, frequency_of_meeting, president)
-> VALUES ('Website Committee', 8, '2015-01-00', 'Every Tuesday', 'Person here')
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INPUT INTO committees (name, num_of_members, created, frequency_of_meeting, pres' at line 1