Solved

Nested Table in Oracle 817

Posted on 2004-08-01
6
371 Views
Last Modified: 2008-01-09
Hi All

 Thanks very much for answering my previous questions.

 If I delete my parent table, will the same command delete all it's nested tables or do I need to handle nested table separately? Please advise.

For e.g

  Create table test (
   id number,
   name varchar2(250),
   address address_tab)
   nested table address store as nested_address;

If I delete test table , will it delete the content for address also?



 
0
Comment
Question by:ssabapathy
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
mmoore earned 250 total points
ID: 11688529
The quote below is not a direct answer to your question but the implication is that when you drop the parent table, all nested tables will also be droped. It is hard to imagine how it could work any other way.

"You cannot directly drop the storage table of a nested table.
Instead, you must drop the nested table column using the ALTER
...
ALTER TABLE department
DROP COLUMN courses; " - http://66.102.7.104/search?q=cache:g-gneyO_vfAJ:www.psoug.org/reference/nested_tab.html+oracle+++%22drop+nested+table%22&hl=en

The above statement was for 9.2.
HTH
Mike
0
 
LVL 23

Expert Comment

by:seazodiac
ID: 11689150
Yes, want to confirm , dropping the parent table will drop the nested table.
0
 
LVL 23

Assisted Solution

by:seazodiac
seazodiac earned 250 total points
ID: 11689162
all in all, nested table behaves exactly as an attribute value of a relation, and follow the same transaction rule as in delete, update, insert.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question