我有一个数据库人员在蜂巢.它的架构如下:
name string,
dob_date int,
dob_month int,
dob_year int.
Run Code Online (Sandbox Code Playgroud)
我已成功将文件中的数据加载到数据库中.
现在我想让人们dob_year=1990进入一张新桌子.
以下代码不起作用:
Select * into people1990 from people where dob_year=1990;
Run Code Online (Sandbox Code Playgroud)
Bal*_*man 25
您可以在Hive中使用create table tablename.
例:
create table people1990 as select * from people where dob_year=1990
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20032 次 |
| 最近记录: |