导出 oracle 表、字段注释 发表于 2014-01-11 | 阅读次数: 最近有个项目要从 Oracle 迁移到 DB2。使用 PD 转换表结构丢失了注释,使用如下语句将 Oracle 中注释导出来到 DB2 中执行。 1234567 表注释:SELECT 'comment on table' || t.table_name || 'is''' || t.comments ||''';'FROM user_tab_comments t; 字段注释:SELECT 'comment on column' || t.table_name || '.' || t.column_name || 'is''' || t.comments ||''';'FROM user_col_comments t; 相关文章 【PostgreSQL 数据库】MyBatis Insert 获取插入行的主键 SQL CASE WHEN 表达式的几种使用形式 PostgreSQL 字符串分隔函数(regexp_split_to_table、regexp_split_to_array) 一次数据库字符串排序规则(COLLATE)的踩坑记录 PostgreSQL 模糊查询 (~ like ilike) 使用区别 本文链接: https://zhangzw.com/posts/20140111.html 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-ND 许可协议。转载请注明出处!