赞
踩
Is it possible to do a
create table as select
using
row format delimited fields terminated by '|';
or to do a
create table like row format delimited fields terminated by '|';
The Language Manual seems to indicate not.. but something tickles me I had achieved this in the past.
解决方案Create Table as select (CTAS) is possible in Hive.
You can try out below command:
CREATE TABLE new_test
row format delimited
fields terminated by '|'
STORED AS RCFile
AS select * from source where col=1
Target cannot be partitioned table.
Target cannot be external table.
It copies the structure as well as the data
Create table like is also possible in Hive.
It just copies the source table definition.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。