字段名 |
数据类型 |
长度 |
整数位 |
小数位 |
允许空值 |
缺省值 |
备注 |
name |
varchar2 |
40 |
n |
<long> |
姓名 | ||
sex |
varchar2 |
1 |
n |
<long> |
性别 | ||
birthday |
date |
7 |
n |
<long> |
生日 | ||
height |
number |
22 |
3 |
2 |
y |
<long> |
身高 |
weight |
number |
22 |
3 |
2 |
y |
<long> |
体重 |
memo |
blob |
4000 |
y |
<long> |
备注 |
这样,我们在进行程序设计时,通过一条简单的sql语句,然好通过ole调用word,便可为最终用户导出完整的数据库表字典文档。
再执行下列sql语句:
select
index_name 索引名,index_type 索引类型,uniqueness 索引类别
from
user_indexes
where
table_name = 'table_test'
得到结果如下(注:sys_il0000031226c00006$$索引为系统在创建数据库表时自动创建的,用于数据库表内容的维护):
索引名 |
索引类型 |
索引类别 | |
1 |
sys_il0000031226c00006$$ |
lob |
unique |
2 |
tb_test_p_name |
normal |
unique |
本文关键:Oracle 数据字典