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 'show) values
设置show varchar(2),
插入值's'总是报错,错在哪?insert into test (show) values ('s');
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 'show) values
设置show varchar(2),
插入值's'总是报错,错在哪?insert into test (show) values ('s');
5 回答3.2k 阅读✓ 已解决
3 回答3.6k 阅读✓ 已解决
2 回答2.8k 阅读✓ 已解决
5 回答1.4k 阅读
3 回答1.2k 阅读✓ 已解决
3 回答2k 阅读
2 回答2k 阅读
show
是 mysql 的一个保留字。如果将它用于列名,需要用 ` 括起来:
(注意,不是
'
)