SemanticExceptionColumnxxFoundinmorethanOneTables/Subqueries-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

SemanticExceptionColumnxxFoundinmorethanOneTables/Subqueries

执行hiveql时报错:

创新互联建站提供成都网站设计、网站制作、网页设计,成都品牌网站建设1元广告等致力于企业网站建设与公司网站制作,十余年的网站开发和建站经验,助力企业信息化建设,成功案例突破上千余家,是您实现网站建设的好选择.

SemanticException Column xx Found in more than One Tables/Subqueries

Hive中有两张表中拥有同一个字段名称,在这两个表做关联的时候会报这个错误

SemanticException Column xx Found in more than One Tables/Subqueries

将其中一个表的重复字段加上别名,然后进行关联查询

select city.city, hotel.hotel, hotel.hotelname from city city, 

(select city as hcity  ,hotel , hotelname from hotel) hotel

where city.city = hotel.hcity


文章题目:SemanticExceptionColumnxxFoundinmorethanOneTables/Subqueries
文章链接:http://kswsj.cn/article/gjedpj.html

其他资讯