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

1、增加表中文名称sql

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

例:

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

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

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

例:

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

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

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

例:

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

3、最后

commit;

猜你喜欢

转载自blog.csdn.net/weixin_40197494/article/details/83055630
今日推荐