Solved

Nested Table in Oracle 817

Posted on 2004-08-01
6
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Alternative to GTT for a temp table for further reuse in Oracle 8 61
error in my cursor 5 65
pl/sql parameter is null sometimes 2 40
error in oracle form 11 53
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

752 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