如何区分嵌套表和借助Oracle元数据系统表的表?
我在 Oracle 中有嵌套表 xxx_nested_table
CREATE OR REPLACE TYPE xxx_tab AS TABLE OF VARCHAR2(30);
CREATE TABLE xxx_nested_table (id NUMBER, column_xxx xxx_tab)
NESTED TABLE column_xxx STORE AS xxx_col_tab;
当我从 user_objects 选择记录时,我无法区分带有表对象的记录和带有嵌套表对象的记录:
select * from user_objects where object_name like '%XXX%'
OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY
XXX_COL_TAB 54496 54496 TABLE 06.09.2011 23:49:25 06.09.2011 23:49:25 2011-09-06:23:49:25 VALID N N N
XXX_NESTED_TABLE 54495 54495 TABLE 06.09.2011 23:49:25 06.09.2011 23:49:25 2011-09-06:23:49:25 VALID N N N
XXX_TAB 54491 TYPE 06.09.2011 23:48:02 06.09.2011 23:48:02 2011-09-06:23:48:02 VALID N N N
如何区分?在什么系统元数据表上?
I have nested table xxx_nested_table in Oracle
CREATE OR REPLACE TYPE xxx_tab AS TABLE OF VARCHAR2(30);
CREATE TABLE xxx_nested_table (id NUMBER, column_xxx xxx_tab)
NESTED TABLE column_xxx STORE AS xxx_col_tab;
When I select record from user_objects I cannot distinguish between record with table object and record with nested table object:
select * from user_objects where object_name like '%XXX%'
OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY
XXX_COL_TAB 54496 54496 TABLE 06.09.2011 23:49:25 06.09.2011 23:49:25 2011-09-06:23:49:25 VALID N N N
XXX_NESTED_TABLE 54495 54495 TABLE 06.09.2011 23:49:25 06.09.2011 23:49:25 2011-09-06:23:49:25 VALID N N N
XXX_TAB 54491 TYPE 06.09.2011 23:48:02 06.09.2011 23:48:02 2011-09-06:23:48:02 VALID N N N
How to distinguish it? On what system metadata table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
成立
Found