Oracle 通用查询:表、字段、表说明、所有用户、库版本
生活随笔
收集整理的這篇文章主要介紹了
Oracle 通用查询:表、字段、表说明、所有用户、库版本
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1,查詢所有表名
select t.table_name from user_tables t;或者select * from tabs; //查詢當前用戶下的表2,查詢所有字段名
select t.column_name from user_col_comments t;3,查詢所有表的表名和表說明
select t.table_name,f.comments from user_tables t inner join user_tab_comments f on t.table_name = f.table_name;4,查詢表的數據條數、表名、中文表名
select a.num_rows, a.TABLE_NAME, b.COMMENTS from user_tables a, user_tab_comments b WHERE a.TABLE_NAME = b.TABLE_NAME order by TABLE_NAME;查詢指定表的所有字段名:
select t.column_name from user_col_comments t where t.table_name = 'BIZ_DICT_XB';
查詢指定表的所有字段名和字段說明:
select t.column_name, t.column_name from user_col_comments t where t.table_name = 'BIZ_DICT_XB';
查詢所有表的表名和表說明
總結
以上是生活随笔為你收集整理的Oracle 通用查询:表、字段、表说明、所有用户、库版本的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Xshell上传、下载文件到linux
- 下一篇: Linux系统命令常用查询