加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

oracle库如何查找表名、字段名?

发布时间:2020-12-12 14:07:33 所属栏目:百科 来源:网络整理
导读:一、Oracle 查询库中所有表名、字段名、字段名说明,查询表的数据条数、表名、中文表名、 1)查询所有表名: select t.table_name from user_tables t; --表名、表空间、行数 select * from all_tables ; //所有用户的表 select * from dba_tables ; //包括

一、Oracle 查询库中所有表名、字段名、字段名说明,查询表的数据条数、表名、中文表名、

1)查询所有表名:
select t.table_name from user_tables t;--表名、表空间、行数

select * fromall_tables; //所有用户的表

select * fromdba_tables; //包括系统表

2)查询所有字段名:

select * from user_tab_columns;//用户字段
select * from all_tab_columns;//所有用户字段
select * from dba_tab_columns;//所有用户表,含系统

3)查询指定表的所字段名,字段说明

select t.column_name,t.column_name fromuser_tab_comments

select t.column_name from user_col_comments t where t.table_name = 'BIZ_DICT_XB';


4)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读