标签:ted lin create width png The lan sql命令 -o
create table fina_indicator(
ts_code varchar(20) comment ‘TS代码‘,
ann_date date comment ‘公告日期‘,
end_date date comment ‘报告期‘,
.....
报错信息: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 ‘ts_code varchar(20)comment‘TS代码‘, ann_datedatecomment‘公告日期‘, end_dat‘ at line 1
在终端下进入mysql创建表时报错
但在Mysql workbench里创建不报错
引号应该有正确的写法;
参见下文:
https://www.jianshu.com/p/a0e6f1e1ac73
在MySQL命令行使用sql语句进行建表时,MySQL 报错,遇到同一个问题,写一篇博客来加深印象。
原SQL语句:
CREATE DATABASE ‘xiaoyaoji‘ CHARACTER SET utf8;
CREATE DATABASE `xiaoyaoji` CHARACTER SET utf8;`
在英文键盘输入环境下,按图示按钮输入反引号 `
标签:ted lin create width png The lan sql命令 -o
原文地址:https://www.cnblogs.com/ttrrpp/p/12720047.html