潇洒的茶叶 · 飞防专用药剂,认准龙灯化学龙智翔_产品· 4 月前 · |
耍酷的红烧肉 · 蚂蚁数科发布新一代融合AI风控引擎 ...· 5 月前 · |
自信的芒果 · 利妥昔单抗药代动力学与ANCA相关性血管炎的 ...· 5 月前 · |
爱运动的核桃 · 西藏那曲撤地设市 ...· 1 年前 · |
打盹的针织衫 · Smart欧洲销量遭遇滑铁卢 不到MINI一半· 1 年前 · |
当我试图在我的表中插入一行时,我得到了以下错误:
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 ''filename')
VALUES ('san', 'ss', 1, 1, 1, 1, 2, 1, 1, 'sment', 'notes','sant' at line 1
请帮帮我。
mysql> desc risks;
+-----------------+--------------+------+-----+---------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------------------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| status | varchar(20) | NO | | NULL | |
| subject | varchar(100) | NO | | NULL | |
| reference_id | varchar(20) | NO | | | |
| location | int(11) | NO | | NULL | |
| category | int(11) | NO | | NULL | |
| team | int(11) | NO | | NULL | |
| technology | int(11) | NO | | NULL | |
| owner | int(11) | NO | | NULL | |
| manager | int(11) | NO | | NULL | |
| assessment | longtext | NO | | NULL | |
| notes | longtext | NO | | NULL | |
| submission_date | timestamp | NO | | CURRENT_TIMESTAMP | |
| last_update | timestamp | NO | | 0000-00-00 00:00:00 | |
| review_date | timestamp | NO | | 0000-00-00 00:00:00 | |
| mitigation_id | int(11) | NO | | NULL | |
| mgmt_review | int(11) | NO | | NULL | |
| project_id | int(11) | NO | | 0 | |
| close_id | int(11) | NO | | NULL | |
| submitted_by | int(11) | NO | | 1 | |
| filename | varchar(30) | NO | | NULL | |
+-----------------+--------------+------+-----+---------------------+----------------+
21 rows in set (0.00 sec)
**mysql> INSERT INTO risks (`status`, `subject`, `reference_id`, `location`, `category`,
`team`, `technology`, `owner`, `manager`, `assessment`, `notes`,'filename') VALUES
('san', 'ss', 1, 1, 1, 1, 2, 1, 1, 'sment', 'notes','santu');**
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 ''filename')
VALUES ('san', 'ss', 1, 1, 1, 1, 2, 1, 1, 'sment', 'notes','sant' at line 1
错误1064 (42000):您的SQL语法中有一个错误;请查看与您的MySQL服务器版本对应的手册,以了解要在'< <‘附近使用的正确语法。
一个非常简单的问题,你可以很容易地解决它,
请遵循我的步骤:将<更改为(和>;更改为);
只要使用:(
);
在此处输入代码
` CREATE TABLE information (
-> id INT(11) NOT NULL AUTO_INCREMENT,
-> name VARCHAR(30) NOT NULL,
-> age INT(10) NOT NULL,