简体   繁体   English

创建带有说明的配置单元表

[英]Create Hive Table with Description

Where should table descriptions be added when creating tables in Hive? 在Hive中创建表时应在何处添加表描述?

Table name: "Orders" 表格名称:“订单”

Table Description: "Orders from Vendor ABC." 表说明:“来自供应商ABC的订单”。

You should use [COMMENT table_comment] keyword in the command. 您应该在命令中使用[COMMENT table_comment]关键字。

Example: 例:

CREATE TABLE IF NOT EXISTS orders (id String, name String) COMMENT 'Orders from Vendor ABC.' ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' STORED AS TEXTFILE;

You can find details here 您可以在这里找到详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM