您的位置:首页 > 数据库 > Oracle

Oracle 查看所有表及注释,字段及注释

2018-02-17 00:00 357 查看

一、表与注释

1、各种系统表查找表

select table_name from user_tables; //当前用户拥有的表
select table_name from all_tables; //所有用户的表
select table_name from dba_tables; //包括系统表
select table_name from dba_tables where owner='用户名'


2、根据表查找表注释

select * from user_tab_comments where table_name = '用户表';


二、字段与注释

1、各种系统表找字段

select * from user_tab_columns where table_name = '用户表';
select * from all_tab_columns where table_name = '用户表';
select * from dba_tab_columns where table_name = '用户表';


2、各种系统表找字段注释

select * from user_col_comments where table_name = '用户表';

参考地址:http://www.cnblogs.com/xusir/p/3214714.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: