gpt4 book ai didi

sql - 在 Hive 上创建表

转载 作者:可可西里 更新时间:2023-11-01 16:01:39 25 4
gpt4 key购买 nike

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 ‘,’;

我得到的错误:

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

SQL 的新手,如果这是一个非常明显的修复,请提前致歉。

最佳答案

像这样尝试...

row format delimited fields terminated by '\;'

让我们知道

关于sql - 在 Hive 上创建表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38324412/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com