Oracle导出当前用户下所有表的表注释,字段 字段注释
2014-07-17 15:34
330 查看
select distinct TABLE_COLUMN.*,
TABLE_NALLABLE.DATA_TYPE,
TABLE_NALLABLE.NULLABLE
from (select distinct utc.table_name table_name,
utc.comments table_comments,
ucc.column_name column_name,
ucc.comments column_comments
from user_tab_comments utc, user_col_comments ucc
where utc.table_name = ucc.table_name
and utc.table_name not like '%_B'
and utc.table_name not like '%_Z'
and utc.table_name not like '%1%') TABLE_COLUMN,
(select distinct table_name, column_name, nullable, DATA_TYPE
from user_tab_cols
where table_name not like '%_B'
and table_name not like '%_Z'
and table_name not like '%1%') TABLE_NALLABLE
where TABLE_COLUMN.column_name = TABLE_NALLABLE.column_name
and TABLE_COLUMN.TABLE_NAME = TABLE_NALLABLE.table_name;
TABLE_NALLABLE.DATA_TYPE,
TABLE_NALLABLE.NULLABLE
from (select distinct utc.table_name table_name,
utc.comments table_comments,
ucc.column_name column_name,
ucc.comments column_comments
from user_tab_comments utc, user_col_comments ucc
where utc.table_name = ucc.table_name
and utc.table_name not like '%_B'
and utc.table_name not like '%_Z'
and utc.table_name not like '%1%') TABLE_COLUMN,
(select distinct table_name, column_name, nullable, DATA_TYPE
from user_tab_cols
where table_name not like '%_B'
and table_name not like '%_Z'
and table_name not like '%1%') TABLE_NALLABLE
where TABLE_COLUMN.column_name = TABLE_NALLABLE.column_name
and TABLE_COLUMN.TABLE_NAME = TABLE_NALLABLE.table_name;
相关文章推荐
- 转:oracle 子查询创建表,表的重命名,给表和列添加注释,显示当前用户所有表,复制已存在表结构到新表
- 针对不同数据库,获取当前用户所有有权限查看的表,以及表的创建时间、更新时间、注释等信息,表中字段的相关信息(包含分页实现)
- oracle sql查询 当前用户的所有表的字段信息
- oracle 如何搜索当前用户下所有表里含某个值的字段?
- 导出oracle用户表及字段注释
- oracle获取当前用户下所有的表名和表注释
- oracle 如何搜索当前用户下所有表里含某个值的字段?(转)
- oracle 获取当前用户下的所有表名与字段信息
- oracle查看该用户的所有表名字、表注释、字段名、字段注释、是否为空、字段类型
- oracle将当前用户下所有的表的create语句导出.sql文件
- oracle查询当前用户下的所有表、表对应的所有表字段、表的主键字段名称
- oracle下导出某用户所有表的方法
- Oracle删除当前用户下的所有表、视图、序列、函数、存储过程、包
- Oracle删除当前用户下的所有表、视图、序列、函数、存储过程、包
- 怎么导出SQL所有用户表的字段信息
- oracle创建表空间、用户、授权、修改字段长度、导出、导入等
- Oracle: 删除当前用户的所有对象(表、视图、存储过程、包、javasource,job)
- oracle 查用户所有表,所有函数和存储过程,所有用户,当前用户连接,用户权限
- 怎么导出SQL所有用户表的字段信息。(2中方法实现)
- 如何导出Oracle某用户所有表【开发者在线】