在Hive中,可以通过以下方式为表添加备注:
CREATE TABLE table_name (
column1 datatype COMMENT 'Column 1 comment',
column2 datatype COMMENT 'Column 2 comment'
)
COMMENT 'Table comment';
ALTER TABLE table_name
SET TBLPROPERTIES ('comment' = 'New table comment');
DESCRIBE EXTENDED table_name;
以上是在Hive中为表添加备注的方法。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:hive添加表记录的方法是什么