修改字段注释:
alter table <table_name> change column <column_name> < column_name> <column_type> comment ‘<column_comment>’;
例如:
将 tcpjbxx 表中的 end_dt 的注释由【预计到期日】修改为【实际到期日】
alter table tcpjbxx change column end_dt end_dt date comment ‘实际到期日’;
添加一个字段:
alter table <table_name> add columns( < column_name> <column_type> comment ‘<column_comment>’);
例如:
给 tcpjbxx 表添加start_dt 字段
alter table tcpjbxx add columns( start_dt date comment ‘成立日期’);
添加多个字段:
alter table <table_name> add columns
( < column1_name> <column1_type> comment ‘<column1_comment>’,
< column2_name> <column2_type> comment ‘<column2_comment>’,
< column3_name> <column3_type> commen