欢迎投稿

今日深度:

修改字段注释,

修改字段注释,


(对于我来说~修改表名表字段一直觉得很在行 今天…突然一个任务让我修改字段注释,让我为难的用了两分钟翻文档终于…hhhhh…所以决定记下来下次再用到就可以直接翻自己的博客了…nice(隐藏笑容中))

首先查看下表结构(表名称我们就先用test代替哈~ 字段就用ziduan~):
desc test;
修改表的注释:
alter table test set comment ‘测试表’;
修改字段/分区注释:
alter table test change column ziduan comment ‘字段’;
alter table test change column fenqu comment ‘分区名称’;

修改字段:
alter table test change column ziduan rename to ziduan01;

www.htsjk.Com true http://www.htsjk.com/teradata/33822.html NewsArticle 修改字段注释, (对于我来说~修改表名表字段一直觉得很在行 今天…突然一个任务让我修改字段注释,让我为难的用了两分钟翻文档终于…hhhhh…所以决定记下来下次再用到就可以直...
相关文章
    暂无相关文章
评论暂时关闭