gpt4 book ai didi

select - hive 多个查询不起作用

转载 作者:行者123 更新时间:2023-12-02 21:49:42 24 4
gpt4 key购买 nike

我正在尝试在HIVE中执行以下操作:

insert into table abc 
select a.plc,b.direction
from (select c.plc from test t JOIN central c ON t.id = c.boxno) a ,
(select c.direction from test t JOIN central c ON t.id = c.boxno) b;

请指出这是怎么回事?

最佳答案

我觉得可以修改此查询以更好的方式获得结果。尝试以下方法:

insert into table abc 
select c.plc,c.direction
from test t
JOIN central c ON t.id = c.boxno;

所需的输出是否相同?如果您想在功能上实现其他目标,请详细说明。

关于select - hive 多个查询不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22143441/

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