sys.col$ and sys.coltype$
来源:互联网 发布:linux下vim环境配置 编辑:程序博客网 时间:2024/06/06 03:47
create table T ( ID number, COL1 SYS.XMLTYPE )XMLType COLUMN COL1 STORE AS CLOB;select obj#,col#,intcol#,name,type# from sys.col$ where obj#='98134' OBJ# COL# INTCOL# NAME TYPE#------ ---- ---------- ------- ------ 98134 1 1 ID 2 98134 2 2 COL1 58 98134 2 3 SYS_NC00003$ 112select obj#,col#,intcol#from sys.coltype$where obj#=98134OBJ# COL# INTCOL#------ ---- ----------98134 2 2
COL$
is the data dictionary table for all columns. That is all the visible columns on the table plus the invisible columns. So the first query returns three rows for ID, COL1 and SYS_NC00003$. which is the offline storage for the XMLTYPE column (that's why COL# is the same and INTCOL# is different).
COLTYPE$
is the data dictionary table for columns declared as a complex data type. SoCOL$.TYPE#
for COl1 is 58 ; this maps to a data type of ANYDATE or XMLTYPE, which are complex data types. The other two columns have data types of NUMBER (COL$.TYPE# = 2
) and CLOB (COL$.TYPE# = 112
) which are both Oracle "primitives". So that's why there's only one record in the query ofCOLTYPE$.
0 0
- sys.col$ and sys.coltype$
- Oracle 数据字典表 -- SYS.COL$
- Oracle 数据字典表 -- SYS.COL$
- Oracle 数据字典表 -- SYS.COL$
- sys
- /sys
- sys
- sys
- sys port and process
- SYS and SYSTEM Users
- SYS$BACKGROUND SYS$USERS
- sys.path sys.argv
- sys.stdout、sys.stdin
- real,user and sys 进程时间统计
- real,user and sys 进程时间统计
- python sys.stdin,sys.stdout,sys.stderr
- hiberfil.sys
- npkcrypt.sys
- 解决Spring MVC @ResponseBody返回中文字符串乱码问题
- 字典树(前缀树)
- DHL与DEX联合提供全球供应链和反向物流解决方案
- 数字图像处理的就业前景与学习资源
- 重构的常用思路
- sys.col$ and sys.coltype$
- 你知道的专利战,也许是错的
- 《Linux入门教程》学习总结
- C#生成随机汉字
- 手动将Apache注册为系统服务
- cocos2dx3.2 加载地图和读取数据的简单使用
- HDFS常用操作
- 【Android/java】3种时间获取方法的差异
- Android数据库操作