2.1.1.1_16 Oracle 静态数据字典之16 TAB_COMMETS 注释【T2】


相关链接

1 静态数据字典

┄┄┄原文
┄┄┄这类数据字典主要是由表和视图组成。应该注意的是,数据字典中的表是不能直接来访问的,但是可以访问数据字典中的视图。静态数据字典中的视图分为三类,它们分别为:DBA_、ALL_、USER_。

  • DBA_TAB_COMMENTS displays comments on all tables and views in the database. Its columns are the same as those in ALL_TAB_COMMENTS.
               在数据库中的所有表和视图上显示注释。
               表结构与"ALL_TAB_COMMENTS"一致。
  • ALL_TAB_COMMENTS displays comments on the tables and views accessible to the current user.
               在当前用户可访问的表和视图上显示注释。
  • USER_TAB_COMMENTS displays comments on the tables and views owned by the current user. Its columns (except for OWNER) are the same as those in ALL_TAB_COMMENTS.
               在当前用户拥有的表和视图上显示注释。此视图不显示OWNER字段

2 ALL_TAB_COLUMNS 数据字典

  • DBA_TAB_COMMENTS ALL_TAB_COMMENTS 表结构完全一致 , USER_TAB_COMMENTS 没有OWNER字段
SerColumnDataTypeNullDescription
1OWNER
VARCHAR2(30)NOT NULLOwner of the table, view, or cluster
表、视图或集群的拥有者
2TABLE_NAME
表名
VARCHAR2(30)NOT NULLName of the table, view, or cluster
表、视图或集群的名称
3COLUMN_NAME
字段名
VARCHAR2(30)NOT NULLColumn name
列名
4DATA_TYPE
字段类型
VARCHAR2(106)Datatype of the column
列的数据类型
5DATA_TYPE_MOD
???
VARCHAR2(3)Datatype modifier of the column
列的数据类型修饰符?
6DATA_TYPE_OWNER
???(库名)
VARCHAR2(30)Owner of the datatype of the column
列的数据类型的所有者
7DATA_LENGTH
长度
NUMBERNOT NULLLength of the column (in bytes)
列长度(以字节为单位)
8DATA_PRECISION
精度
NUMBERDecimal precision for NUMBER datatype; binary precision for FLOAT datatype; NULL for all other datatypes
数字数据类型的十进制精度;浮点数据类型的二进制精度;其他数据类型为空
9DATA_SCALE
标度
NUMBERDigits to the right of the decimal point in a number
一个数中小数点右边的数字
10NULLABLE
允许为空
VARCHAR2(1)Indicates whether a column allows NULLs. The 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.
指示列是否允许空值。如果列上存在NOT NULL约束,或者列是主键的一部分,则值为N。约束应该处于启用验证状态。
11COLUMN_ID
字段序号
NUMBERSequence number of the column as created
创建的列的序列号
12DEFAULT_LENGTH
默认值字节数
NUMBERLength of the default value for the column
列的默认值的长度(字节数)
13DATA_DEFAULT
默认值
LONGDefault value for the column
列的默认值
例如:“ZT” NUMBER DEFAULT 0
14NUM_DISTINCT
列去重后数量
NUMBERNumber of distinct values in the columnFoot 1
列中不同值的数目
15LOW_VALUE
低位
RAW(32)Low value in the column Footref 1
列中的最小值
16HIGH_VALUE
高位
RAW(32)High value in the columnFootref 1
列中的最大值
17DENSITY
密度
NUMBERDensity of the columnFootref 1
列密度∈[0,1]
18NUM_NULLS
NULL值数量
NUMBERNumber of NULLs in the column
列中的NULL值数量
19NUM_BUCKETS
桶数
NUMBERNumber of buckets in the histogram for the column
Note: The number of buckets in a histogram is specified in the SIZE parameter of the ANALYZE SQL statement. However, 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, Oracle Database creates the specified number of buckets, but the value indicated by this column may be smaller because of an internal compression algorithm.
列的(统计)直方图中的桶数
注解:直方图中的桶数是在ANALYZE SQL语句的SIZE参数中指定的。但是,Oracle数据库不会创建一个桶数多于样例中行数的柱状图。另外,如果示例中包含重复非常多的值,Oracle数据库将创建指定数量的桶,但是由于使用了内部压缩算法,此列所指示的值可能会更小。
20LAST_ANALYZED
最近ANALYZE日期
DATEDate on which this column was most recently analyzed
列最近被分析的日期
21SAMPLE_SIZE
样本大小
NUMBERSample size used in analyzing this column
用于分析这一列的样本大小
22CHARACTER_SET_NAME
字符集名称
VARCHAR2(44)Name of the character set:  字符集名称
 ● CHAR_CS
 ● NCHAR_CS
23CHAR_COL_DECL_LENGTH
字符类型列的声明长度
NUMBERDeclaration length of the character type column
字符类型列的声明长度
24GLOBAL_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)
对于分区表,指示是从整体上收集表的列统计信息(YES),还是从基础分区和子分区的统计信息中估计的(NO)
25USER_STATS
用户状态
VARCHAR2(3)Indicates whether statistics were entered directly by the user (YES) or not (NO)
指示统计信息是否由用户直接输入(YES)或否(NO)
26AVG_COL_LEN
列的平均字节长度
NUMBERAverage length of the column (in bytes)
列的平均长度(以字节为单位)
27CHAR_LENGTH
字符类型长度
NUMBERDisplays the length of the column in characters. This value only applies to the following datatypes:
以字符显示列的长度。此值仅适用于以下数据类型:
 ● CHAR
 ● VARCHAR2
 ● NCHAR
 ● NVARCHAR
28CHAR_USED
字符类型使用(的定义语言)
NUMBERIndicates that the column uses BYTE length semantics (B) or CHAR length semantics ©, or whether the datatype is not any of the following (NULL):
指示列使用字节长度语义(B)或字符长度语义©,或者数据类型是否不属于下列任何一种(NULL):
 ● CHAR
 ● VARCHAR2
 ● NCHAR
 ● NVARCHAR2
29V80_FMT_IMAGE
V80 图像格式
NUMBERIndicates whether the column data is in release 8.0 image format (YES) or not (NO)
指示列数据是否采用release 8.0图像格式(YES)或not (NO)
30DATA_UPGRADED
数据升级
NUMBERIndicates whether the column data has been upgraded to the latest type version format (YES) or not (NO)
指示列数据是否已升级为最新类型版本格式(YES)或未(NO)
31HISTOGRAM
(统计)直方图
NUMBERIndicates existence/type of histogram:
表示直方图的存在/类型:
 ● NONE
 ● FREQUENCY
 ● HEIGHT BALANCED

20/12/04

M

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值