我在 hive 中有一个数据库人。它的架构如下:
name string,
dob_date int,
dob_month int,
dob_year int.
我已成功将文件中的数据加载到数据库中。
现在我想让人们拥有
dob_year=1990
到一张新 table 上。以下代码不起作用:
Select * into people1990 from people where dob_year=1990;
最佳答案
您可以使用 create table tablename as在 hive 。
例子:
create table people1990 as select * from people where dob_year=1990
关于 hive 选择进入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18049444/