批量获取oracle的表和表字段注释 --用户表注释表 SELECT * FROM USER_TAB_COMMENTS WHERE TABLE_NAME LIKE 'WEB_ISC_%'; --显示指定表的注释 SELECT 'comment on table ' || T.TABLE_NAME || ' is ''' || T.COMMENTS || '''' FROM USER_TAB_COMMENTS T WHERE T.TABLE_NAME LIKE 'WEB_ISC_%'; --用户字
选择工具——Execute Commands——Edit /Run Script 将代码粘贴到此处,然后执行.即成功加入注释 Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl 'the current model 'get the current active model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "There is n
创建Oracle数据库表时加上注释 CREATE TABLE t1( id varchar2(32) primary key,name VARCHAR2(8) NOT NULL, age number, ) 添加表注释: COMMENT ON table t1 IS '个人信息'; 添加字段注释: comment on column t1.id is 'id'; comment on column t1.nameis '姓名'; comment on column t1.age is '年龄
SELECT C.TABLE_NAME,NUM_ROWS,(select COMMENTS from user_tab_comments WHERE TABLE_NAME=C.TABLE_NAME) AS TABLE_COMMENTS,COLUMN_NAME,D.COMMENTS AS COLUMN_COMMENTSFROM user_tables C ,user_col_comments D WHERE C.NUM_ROWS>0 AND C.TABLE_NAME=D.TABLE_NAME