1.create table语句的默认格式
hive中create table语句中的默认存储格式是stored as textfile.(即文本文件数据编码)
- 什么是 文本文件数据编码?
在文本文件中,每一行数据就是1条记录,通常这些记录使用默认分隔符。
2.自定义create table语句的格式
1)自定义语法
- stored as sequencefile.
- row format delimited.
- serde.
- inputformat.
- outputformat.
这些语法之间有些可以等价替换使用。例如stored as sequencefile等价于 指定inputformat为 org.apache.hadoop.mapred.SequenceFileInputFormat并指定outputformat