如何用java为oracle数据库表中的字段添加注释
展开全部
1、向现有表添加字段
alter table sch_schoolextinfo add (LASTYEARTHEQUALITY VARCHAR2(10));
alter table sch_schoolextinfo add (THEORYTRAINCOMNUM VARCHAR2(10));
2、添加注释
comment on column SCH_SCHOOLEXTINFO.LASTYEARTHEQUALITY is '上年度质量信誉考核情况';
SCH_SCHOOLEXTINFO -------> 表名字
LASTYEARTHEQUALITY --------> 字段名
alter table sch_schoolextinfo add (LASTYEARTHEQUALITY VARCHAR2(10));
alter table sch_schoolextinfo add (THEORYTRAINCOMNUM VARCHAR2(10));
2、添加注释
comment on column SCH_SCHOOLEXTINFO.LASTYEARTHEQUALITY is '上年度质量信誉考核情况';
SCH_SCHOOLEXTINFO -------> 表名字
LASTYEARTHEQUALITY --------> 字段名
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询