hive的内部表与外部表创建

最近才接触Hive。学到了一些东西,就先记下来,免得以后忘了。

1.创建表的语句:
Create [EXTERNAL] TABLE [IF NOT EXISTS] table_name 
[(col_name data_type [COMMENT col_comment], ...)] 
[COMMENT table_comment] 
[PARTITIONED BY (col_name data_type [COMMENT col_comment], ...)] 
[CLUSTERED BY (col_name, col_name, ...) [SORTED BY (col_name [ASC|DESC], ...)] INTO num_buckets BUCKETS] 
[ROW FORMAT row_format] 
[STORED AS file_format] 
[LOCATION hdfs_path]

上一篇:Vue 组件之间通信 All in One


下一篇:在远程登陆的主机上通过命令行源码编译安装 GNU M4、autoconf、automake 等程序