vertica中增加表的中文表名和中文注释

Dear 丶 2022-05-07 08:20 437阅读 0赞

1、增加表中文名称sql

  1. comment on table 用户名.表名称 is '表中文名称';

例:

  1. comment on table test.aaa is 'aaa测试表';

2、增加表中文注释
2.1、增加表中文注释需要查出projections

  1. select projection_name from PROJECTIONS where owner_name = '用户名' and anchor_table_name = '表名称' limit 1

例:

  1. select projection_name from PROJECTIONS where owner_name = 'test' and anchor_table_name = 'aaa' limit 1

查出:
aaa_b0
2.2、增加表中文字段注释

  1. comment on column 用户名.分区.字段 is'字段中文注释';

例:

  1. comment on column test.aaa_b0.id is '序号';

3、最后

  1. commit

发表评论

表情:
评论列表 (有 0 条评论,437人围观)

还没有评论,来说两句吧...

相关阅读