`
itace
  • 浏览: 172214 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

oracle所有表的基本信息

 
阅读更多

原文:http://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_2094.htm

ALL_TAB_COLUMNS

ALL_TAB_COLUMNS describes the columns of the tables, views, and clusters accessible to the current user. To gather statistics for this view, use theANALYZE SQL statement or the DBMS_STATS package.

Related Views

  • DBA_TAB_COLUMNS describes the columns of all tables, views, and clusters in the database.

  • USER_TAB_COLUMNS describes the columns of the tables, views, and clusters owned by the current user. This view does not display the OWNERcolumn.

Column Datatype NULL Description
OWNER VARCHAR2(30) NOT NULL Owner of the table, view, or cluster
TABLE_NAME VARCHAR2(30) NOT NULL Name of the table, view, or cluster
COLUMN_NAME VARCHAR2(30) NOT NULL Column name
DATA_TYPE VARCHAR2(106)   Datatype of the column
DATA_TYPE_MOD VARCHAR2(3)   Datatype modifier of the column
DATA_TYPE_OWNER VARCHAR2(30)   Owner of the datatype of the column
DATA_LENGTH NUMBER NOT NULL Length of the column (in bytes)
DATA_PRECISION NUMBER   Decimal precision for NUMBERdatatype; binary precision forFLOAT datatype, null for all other datatypes
DATA_SCALE NUMBER   Digits to right of decimal point in a number
NULLABLE VARCHAR2(1)   Specifies whether a column allows NULLs. Value is N if there is a NOT NULL constraint on the column or if the column is part of a PRIMARY KEY. The constraint should be in an ENABLE VALIDATE state.
COLUMN_ID NUMBER   Sequence number of the column as created
DEFAULT_LENGTH NUMBER   Length of default value for the column
DATA_DEFAULT LONG   Default value for the column
NUM_DISTINCT NUMBER   Number of distinct values in the columnFoot 1 
LOW_VALUE RAW(32)   Low value in the columnFootref 1
HIGH_VALUE RAW(32)   High value in the columnFootref 1
DENSITY NUMBER   Density of the columnFootref 1
NUM_NULLS NUMBER   Number of nulls in the column
NUM_BUCKETS NUMBER   Number of buckets in the histogram for the column

Note: The number of buckets in a histogram is specified in the SIZEparameter of the SQL statementANALYZE. However, the Oracle Database does not create a histogram with more buckets than the number of rows in the sample. Also, if the sample contains any values that are very repetitious, the Oracle Database creates the specified number of buckets, but the value indicated by this column may be smaller because of an internal compression algorithm.

LAST_ANALYZED DATE   Date on which this column was most recently analyzed
SAMPLE_SIZE NUMBER   Sample size used in analyzing this column
CHARACTER_SET_NAME VARCHAR2(44)   Name of the character set:CHAR_CS or NCHAR_CS
CHAR_COL_DECL_LENGTH NUMBER   Length
GLOBAL_STATS VARCHAR2(3)   For partitioned tables, indicates whether column statistics were collected for the table as a whole (YES) or were estimated from statistics on underlying partitions and subpartitions (NO)
USER_STATS VARCHAR2(3)   Indicates whether statistics were entered directly by the user (YES) or not (NO)
AVG_COL_LEN NUMBER   Average length of the column (in bytes)
CHAR_LENGTH NUMBER   Displays the length of the column in characters. This value only applies to the following datatypes:
  • CHAR

  • VARCHAR2

  • NCHAR

  • NVARCHAR

CHAR_USED VARCHAR2(1)   B | CB indicates that the column uses BYTE length semantics. Cindicates that the column usesCHAR length semantics. NULLindicates the datatype is not any of the following:
  • CHAR

  • VARCHAR2

  • NCHAR

  • NVARCHAR2

V80_FMT_IMAGE VARCHAR2(3)   Indicates whether the column data is in release 8.0 image format (YES) or not (NO)
DATA_UPGRADED VARCHAR2(3)   Indicates whether the column data has been upgraded to the latest type version format (YES) or not (NO)
HISTOGRAM VARCHAR2(15)   Indicates existence/type of histogram:
  • NONE

  • FREQUENCY

  • HEIGHT BALANCED

分享到:
评论

相关推荐

    Oracle 数据库基本信息查询sql语句

    Oracle 数据库基本信息查询sql语句

    Oracle经典SQL语句

    ORACLE经典语句汇总 -- 字符串左填充和右填充,默认填充空格 -- 产生1~99行数据,少于一位则补0 -- 刪除相同行 -- 随机数 -- 产生业务流水号 -- 查询某张表中有哪些字段 -- 自循环表中 由叶子...--ORACLE获得系统信息

    管理信息化ORACLEOracle入门基本知识一点通.pdf

    管理信息化ORACLEOracle入门基本知识一点通.pdf

    获取ORACLE 表字段,表名,以及主键之类等等的信息

    获取ORACLE 表字段,表名,以及主键之类等等的信息 基本开发中要用的信息都能取到了.

    Oracle常见基本概念和术语

    ORACLE 数据库中的最小存储和处理单位,包含块本身的头信息数据或PL/SQL代码。 ORACLE 块的大小是可以在安装时选择“自定义安装”来指定,也可以在CREATE DATABASE创建数据库实例时指定。其最小为2K,最大可达为64K...

    oracle成绩管理系统

    1. 实现对oracle中表的数据访问,并可对其进行操作。整个系统有三种用户,“管理员”,“教师”,“学生”。 2. 管理员可对整个系统的信息进行修改,添加,删除操作, 但不能对自己的信息进行删除操作 3. ...

    Oracle 10g应用指导

    Oracle是当今各领域中应用比较广泛的一个大型关系型数据库产品,它以其所拥有的稳定、可伸缩性强以及安全可靠等特性受到越来越多的系统开发人员的青睐,正成为企业开发信息系统的首选产品。同其他数据库管理系统相比...

    oracle database 10g 完整参考手册part1

    第18章 Oracle基本安全 第Ⅲ部分 高级内容 第19章 高级安全性—— 虚拟专用数据库 第20章 使用表空间 第21章 用SQL*Loader加载数据 第22章 使用Data Pump导入和导出 第23章 访问远程数据 第24章 使用物化视图 第25章...

    深入了解Oracle数据字典

    首先,Oracle的字典表和视图基本上可以分为三个层次。 1.1 X$表 这一部分表是Oracle数据库的运行基础,在数据库启动时由Oracle应用程序动态创建。 这部分表对数据库来说至关重要,所以Oracle不允许SYSDBA之外的用户...

    Oracle11g从入门到精通2

    1.3 Oracle基本术语 1.3.1 数据字典 1.3.2 数据文件 1.3.3 控制文件 1.3.4 日志文件 1.3.5 表空间 1.3.6 段 1.3.7 区 1.3.8 数据块 1.4 Oracle 11g的新特性 1.4.1 数据库管理部分 1.4.2 PL/...

    27.Oracle union多表查询1

    3、测试数据说明超女基本信息历史表(T_GIRL_HIS)中有4条记录,超女基本信息表(T_GIRL)中有3条记录,两个表中有相交的记录('0103'、'010

    大型数据库Oracle的基本使用

    1.SQL*Plus基础 理解SQL*Plus的运行环境 SQL*Plus的帮助命令 SQL*Plus常用命令的使用(重点) 2.SQL语言基础 SQL语言概述、分类 常用查询语句的使用(重点) ...分组语句、模糊查询、表的连接以及子查询(重点)

    Oracle系统架构基本概念.pptx

    Oracle系统架构基本概念.pptx

    Oracle数据库的基本概念.pptx

    Oracle数据库的基本概念.pptx

    Oracle术语及其基本操作.pptx

    Oracle术语及其基本操作.pptx

    JAVA ORACLE数据库资料讲解

    数据库设计 以及所有数据库的性能优化 所谓数据库设计就是根据具体应用环境设计出合理的数据库模式。其中应用环境包括:业务需求、数据需求和技术条件等具体情况,而数据库模式包括数据之间的联系、数据应满足的约束...

    青云oracle工具

    5.能够列出所有的字段信息,便于对照,一般的工具里只提供表与字段的关系,不能列出针对字段的查询处理; 6.一般数据库中,同一个字段名可能在多张表里使用,大部分情况下,其类型,长度,备注基本一致。但是设计的...

    C#对Oracle数据库的增加,删除,修改,基本语句

    C#对Oracle数据库的增加,删除,修改,基本语句,非常适合初学者,里面还有一个数据绑定,同时我又增加了一个刷新按钮,随时查看数据库中的信息。

    Oracle自学(学习)材料 (共18章 偏理论一点)

    ALTER TABLESPACE 8-25 为表空间的创建设置 ORACLE 管理文件(OMF) 8-27 使用 OMF 创建表空间 8-28 获得表空间的信息 8-29 小结 8-29 9 储存结构与关系 目标 9-2 概述 9-3 段的类型 9-4 储存子句的优先次序 9-7 片的...

Global site tag (gtag.js) - Google Analytics