Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮助我如何实施CREATE TABLE AS SELECT
CREATE TABLE AS SELECT
为简单create table t1 as select * from t2;我可以实现为
create table t1 as select * from t2
Create table t1 like t2; insert into t1 as select * from t2;
但是如何实现create table t1 as select c1,c2,c3 from t2;
create table t1 as select c1,c2,c3 from t2;
有没有办法在黑斑羚中实现这一点?
正如评论中提到的,Impala 自 1.2 起支持 CREATE TABLE AS SELECT:文档、JIRA 票证。