GBase 8a
运维管理
文章

获取表comment 注释信息

发表于2025-06-25 14:15:3013次浏览0个评论

        use information_schema; 
            select 'alter table ' || TABLE_SCHEMA ||'.' || table_name || ' comment ''' || table_comment ||''';'  sqlstr
              from TABLES 
             where TABLE_SCHEMA='bjnxy' 
               and TABLE_NAME='whj_01';

评论已关闭