批量获取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_%'; --用户字
ms sql server 1.查询所有表select [id], [name] from [sysobjects] where [type] = 'u' order by [name]2.查询所有数据库3.select [name] from [sysdatabases] order by [name]查询表中字段 select [name] from [syscolumns] where [name] = 'tableXXX'order by [colid] oracle 1.查找表的所有索