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

Oracle常用查看表结构命令

2015-12-17 18:07 585 查看
获取表: 

select table_name from user_tables; //当前用户的表       

select table_name from all_tables; //所有用户的表   

select table_name from dba_tables; //包括系统表 

获取表字段: 

select * from user_tab_columns where Table_Name='用户表'; //当前用户的表

select * from all_tab_columns where Table_Name='用户表'; //所有用户的表

select * from dba_tab_columns where Table_Name='用户表'; //包括系统表

获取表注释: 

select * from user_tab_comments

获取字段注释: 

select * from user_col_comments 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: