hadoop学习笔记之HiveSQL DML
2015-08-13 08:34
537 查看
DML
load data [local] inpath 'filepath' [overwrite] into table tablename [partition (partcol1=val1, partcol2=val2...)]
insert overwrite table tablename1 [partition (partcol1=val1, partcol2=val2...) [if not exists] ] select_statement1 from from_statement;
insert into table tablename1 [partition (partcol1=val1, partcol2=val2 ...)] select_statement1 from from_statement;
from from_statement
insert overwrite table tablename1 [partition (partcol1=val1, partcol2=val2...) [if not exists]]
insert overwrite table tablename2 [partition ... [if not exists]] select_statement2]
动态分区
insert overwrite table tablename partition (partcol1, partcol2)
select xxx,p1,p2 from from_statement
要设置不严格模式
把表卸成文件
insert overwrite [local] directory directory1
[row format row_format] [stored as file_format]
select ..from..
load data [local] inpath 'filepath' [overwrite] into table tablename [partition (partcol1=val1, partcol2=val2...)]
insert overwrite table tablename1 [partition (partcol1=val1, partcol2=val2...) [if not exists] ] select_statement1 from from_statement;
insert into table tablename1 [partition (partcol1=val1, partcol2=val2 ...)] select_statement1 from from_statement;
from from_statement
insert overwrite table tablename1 [partition (partcol1=val1, partcol2=val2...) [if not exists]]
insert overwrite table tablename2 [partition ... [if not exists]] select_statement2]
动态分区
insert overwrite table tablename partition (partcol1, partcol2)
select xxx,p1,p2 from from_statement
要设置不严格模式
把表卸成文件
insert overwrite [local] directory directory1
[row format row_format] [stored as file_format]
select ..from..
相关文章推荐
- mysql高可用架构之mysql-mmm配置详解
- hadoop学习笔记之HiveSQL DDL
- PLSQLDeveloper中文显示乱码的解决方法
- 关于MySQL的TPS和QPS
- MySQL数据库ERROR 1030 (HY000): Got error 28 from storage engine
- Oracle Instant Client(即时客户端) 安装与配置 PLSQL Developer
- SqlBulkCopy批量添加数据
- pl/sql developer 编码格式设置
- SQLiteCursor和ContentProvider的线程安全问题
- MySQL server has gone away - in exactly 60 seconds
- MySQL必知必会笔记(七)安全管理 数据库维护 改善性能
- Zabbix监控mysql Master Slave主从同步(复制)状态,附脚本
- 64位win7 pl/sql developer连接linux oracle11g服务端
- 探讨Mysql中OPTIMIZE TABLE的作用详解
- mysql:Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
- 一步一步跟我学习hadoop(7)----hadoop连接mysql数据库执行数据读写数据库操作
- tpcc-mysql测试mysql5.6 (xfs文件系统)
- SQL 维护计划
- win764bit系统plsqldeveloper11连接oracle11g64bit配置方法
- Linux运维 第四阶段 (五)MySQL用户和权限管理、日志管理