当前位置:网站首页>Data Analysis Tools - DDL operations & DML operations in HQL
Data Analysis Tools - DDL operations & DML operations in HQL
2022-07-30 15:42:00 【Getullo Book】
DDL operations in HQL
Create table statement
1) table creation method:
Create table:
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]
Description:
1.1) CREATE TABLE creates a table with the specified name.If a table with the same name already exists, an exception is thrown; the user can ignore this exception with the IF NOT EXISTS option.
1.2) The EXTERNAL keyword allows users to create an external table and specify a path (LOCATION) pointing to the actual data while creating the table. When Hive creates an internal table, it will move the data to the path pointed to by the data warehouse; ifCreate an external table that only records the path where the data is located, without making any changes to the location of the data.When a table is dropped, the metadata and data of the internal table will be included together
边栏推荐
- 阿里CTO程立:阿里巴巴的开源历程、理念和实践
- 952. 按公因数计算最大组件大小 : 枚举质因数 + 并查集运用题
- 工具| execsnoop 短时进程追踪工具
- Introduction to golang image processing library image
- Alluxio为Presto赋能跨云的自助服务能力
- 微服务该如何拆分?
- Our company has used gateway services for 6 years, dynamic routing, authentication, current limiting, etc., a stable batch!
- Extremely Knowing v2 Analysis
- Xshell命令
- tiup clean
猜你喜欢

Distributed pre-course: MySQL implements distributed locks

GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?

90后人大硕士为学医竟重新高考,成功被首医大录取

nodejs环境变量设置

Placement Rules 使用文档

Back waves are coming!Ali produced the "second generation" container technical manual and brain map, which is too fragrant

Our company has used gateway services for 6 years, dynamic routing, authentication, current limiting, etc., a stable batch!

In-depth analysis of Kubernetes application management

About the data synchronization delay of MySQL master-slave replication

存储器映射、位带操作
随机推荐
RISC-V calling conventions
TiUP terms and core concepts
科研中一些常用软件清单
二、判断 & 循环
timed task corn
Nature Microbiology综述:聚焦藻际--浮游植物和细菌互作的生态界面
针对 MySQL/InnoDB 刷盘调优
一文读懂Elephant Swap,为何为ePLATO带来如此高的溢价?
Compile, link, notes - 3
How is the B+ tree index page size determined?
TiDB 工具下载
Mysql database query is very slow. Besides the index, what else can be caused?
【云原生】灰度发布、蓝绿发布、滚动发布、灰度发布解释
【云原生】服务行业案例-不可预测的并发场景解决方案
Could not acquire management access for administration
难道Redis真的变慢了吗?
【喂到嘴边了的模块】准备徒手撸GUI?用Arm-2D三分钟就够了
MASM32v11编程调用Process32First失败: 程序发出命令,但命令长度不正确
被捧上天的Scrum敏捷管理为何不受大厂欢迎了?
【云原生】阿里云ARMS业务实时监控