【问题标题】:INPUT INTO error - Beginner MYSQL Syntax Issue [closed]INPUT INTO 错误 - 初学者 MYSQL 语法问题 [关闭]
【发布时间】:2015-03-31 18:13:00
【问题描述】:

我看到过其他关于同一问题的问题,但我似乎找不到可以解决此问题的问题。我发布了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

【问题讨论】:

    标签: mysql sql database terminal


    【解决方案1】:

    这是INSERT INTO 不是INPUT INTO

    以后就去dev.mysql

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-17
      • 2019-06-18
      • 2021-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-23
      相关资源
      最近更新 更多