INPUT INTO错误 - 初学者MYSQL语法问题

时间:2015-03-31 18:13:00

标签: mysql sql database terminal

我已经看到其他问题询问同样的事情,但我似乎无法找到解决这个问题的问题。我发布了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

1 个答案:

答案 0 :(得分:2)

INSERT INTO而非INPUT INTO

将来只需转到dev.mysql

相关问题