首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >配置单元: CREATE TABLE AS SELECT命令无法指定目标表的列列表

配置单元: CREATE TABLE AS SELECT命令无法指定目标表的列列表
EN

Stack Overflow用户
提问于 2017-04-03 15:30:27
回答 2查看 2.7K关注 0票数 0

我怎么才能让它工作呢?

  hive> desc temp;
  OK
  a                     int                                         
  b                     int                                         
  Time taken: 0.077 seconds, Fetched: 2 row(s)

我想创建包含列名为c和d的t2配置单元表,但出现以下错误。

  hive> create table t2(c int,d int) as select a,b from temp;
  FAILED: SemanticException [Error 10065]: CREATE TABLE AS SELECT command         cannot specify the list of columns for the target table
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43178920

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档