欢迎投稿

今日深度:

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

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;

www.htsjk.Com true http://www.htsjk.com/teradata/32416.html NewsArticle vertica中增加表的中文表名和中文注释, 1、增加表中文名称sql comment on table 用户名.表名称 is '表中文名称'; 例: comment on table test.aaa is 'aaa测试表'; 2、增加表中文注释 2.1、增加表中文注...
相关文章
    暂无相关文章
评论暂时关闭