1.
假设SQL语句写错
修改:将`(英文版的·)改成' '
出现新的问题,修改错误
假设有空格
修改删空格(尽量写在一行里,就OK了),例如下面的例子
create table emp(EMPNO int comment '员工id',ENAME string comment '员工名字',JOB string comment '工作岗位',MGR string comment '部门经理',HIREDATE date comment '受雇日期',SAL bigint comment '薪水',BONUS bigint comment '奖金',DEPTNO int comment '部门编号')comment '员工信息表'ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';
create table dept(DEPTNO int comment '部门编号',DEPTNAME string comment '部门名称',DEPTADDR string comment '部门地点')comment '部门信息表'ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';
2.ParseException line 1:131 cannot recognize input near 'timestemp' 'comment' ''受雇日期'' in column type
把timestemp改成date