Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 在配置单元上创建表_Sql_Hadoop_Hive_Bigdata - Fatal编程技术网

Sql 在配置单元上创建表

Sql 在配置单元上创建表,sql,hadoop,hive,bigdata,Sql,Hadoop,Hive,Bigdata,我得到的错误: CREATE TABLE DowJones (quarter int, stock string, StockDate date, open double, high double, low double, close double, volume double, percent_change_price double, percent_change_volume_over_last_wk double, previous_weeks_volume double, next_we

我得到的错误:

CREATE TABLE DowJones (quarter int, stock string, StockDate date, open double, high double, low double, close double, volume double, percent_change_price double, percent_change_volume_over_last_wk double, previous_weeks_volume double, next_weeks_open double,  next_weeks_close double, percent_change_next_weeks_price double, days_to_next_dividend int, percent_return_next_dividend double) row format delimited fields terminated by ‘,’;
SQL新手,所以如果这是一个非常明显的修复,请提前道歉

像这样试试

Error while compiling statement: FAILED: ParseException line 1:431 mismatched input ',' expecting StringLiteral near 'by' in table row format's field separator [ERROR_STATUS]
让我们知道

像这样试试

Error while compiling statement: FAILED: ParseException line 1:431 mismatched input ',' expecting StringLiteral near 'by' in table row format's field separator [ERROR_STATUS]

让我们知道

不确定是否只是复制/粘贴了错误的格式,但语句似乎以错误的撇号结尾?你能试着用普通的撇号来代替它吗。我从其他地方复制和粘贴了-更改了撇号,现在查询工作了-感谢您的帮助欢迎,很高兴它有帮助:)错误在',我想这是由于复制/粘贴。替换并重新写入不确定是否只是复制/粘贴错误的格式,但语句似乎以错误的撇号结尾?你能试着用普通的撇号来代替它吗。我从其他地方复制和粘贴了-更改了撇号,现在查询工作了-感谢您的帮助欢迎,很高兴它有帮助:)错误在',我想这是由于复制/粘贴。替换并编写againI没有尝试过这个,但是“mcha”通过替换撇号所建议的方法奏效了-感谢您的帮助!我还没有尝试过这个,但是“mcha”所建议的替换撇号的方法奏效了——谢谢你的帮助!