ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 批量生成注释命令

批量生成注释命令

原创 Linux操作系统 作者:renjixinchina 时间:2012-12-05 12:16:16 0 删除 编辑
批量生成注释命令:
表:
select 'comment on table '||a.owner||'.'||a.TABLE_NAME||' is '||''''||a.comments||''''||';' from dba_tab_comments a where a.OWNER='JKDA_ZZNEW';


列:
select 'comment on column '||a.owner||'.'||a.table_name||'.'||a.column_name||' is '||''''||a.comments||''''||';' from dba_col_comments a where a.OWNER='JKDA_ZZNEW';

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15747463/viewspace-750569/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-01-30

  • 博文量
    373
  • 访问量
    2161067