Nested table and tables nested inside (CREATE TABLE)

Hi all

I have a problem of creation of a table with some types defined by the user at several levels (and therefore the nested tables).

All first of all objects:
type top_object is object (
    text_top varchar2(100),
    table_a a_object_tbl,
    table_b b_object_tbl
);

type a_object_tbl is table of a_object;
type a_object is object (
  text_a varchar2(100)
);

type b_object_tbl is table of b_object;
type b_object is object (
  text_b varchar2(100),
  table_c c_object_tbl,
  table_d d_object_tbl
);

type c_object_tbl is table of c_object;
type c_object is object (
  text_c varchar2(100)
);

type d_object_tbl is table of d_object;
type d_object is object (
  text_d varchar2(100)
);
Shortly: the SUPERIOR object contains tables A and B. B includes tables C and D.


Well, now I want to create a table that contains the TOP level object.
My attempt:
create table multilevel_table (
  some_value varchar2(100),
  data top_object
)
NESTED TABLE top_object.table_a STORE AS data1,
NESTED TABLE top_object.table_b STORE AS data2
(NESTED TABLE table_c STORE AS data3,
NESTED TABLE table_c STORE AS data4);
Of course, this does not (otherwise I would not have asked you ;)). If I jump the 'second level', so just deleting table_b top_object and, therefore, the "inner nested table' it works.
But on this scenario more complex I don't know the right way or the syntax.

I would be grateful if I get any help or suggestion on your part!

+ 1 for recommendation of Hoek of simply not using TABLEs IMBRIQUEES for persistent structures.

But:

create table multilevel_table (
  some_value varchar2(100),
  data top_object
)
NESTED TABLE data.table_a STORE AS data1,
NESTED TABLE data.table_b STORE AS data2
(NESTED TABLE table_c STORE AS data3,
 NESTED TABLE table_d STORE AS data4) ;

Tags: Database

Similar Questions

  • Bug of visibility with layers nested inside groups

    I noticed that if the visibility of a group is switched off, all layers nested inside with a tilt individual visibility on will always show. Thus extracted is not to honor the setting of visibility of the parent container. Visibility breaks also when using layers. To best illustrate:

    • [off] [group]
      • [on] [level 1]
      • [on] [level 2]
      • [on] [level 3]

    All layers will be always.

    • [off] [group]
      • [off] [level 1]
      • [off] [level 2]
      • [off] [level 3]

    Visibility is behaving properly.

    When handling a few layers it is not much of a case. But often times my workflow requires me to a large amount of layers with different visibility settings group.

    Can you guys look inside? Much appreciated!

    Hi krios21.

    The visibility of top-level must certainly substitute any trace of the child, but there was recently a few problems with the calculation of the visibility when various merger and similar patterns are used. It is very likely that your question is already fixed, but not yet deployed. If you want to share the file, either publicly or privately to me by PM or mhendric (at) adobe.com, I can assure you that for you (if not, I need to get on fixing it :-).)

    -Mitch

    P.S. You might find that, activation/deactivation of specific layers on and off have to settle. In this case, it is even more likely, you have hit on the condition that I describe. It is also a way around the problem (even if it's embarrassing).

  • Model is nested inside itself?

    Recently, I changed my site template. I just changed the header image. When I try to apply it to the other pages, I get this error message:

    Template file 'file name' is nested inside itself (directly or indirectly).

    Any ideas? Thank you guys.

    Independent contact fault, some information here for you on how RECREATE YOUR TEMPLATES, which is what you need to do for all the models with this tag at the top.  It would be MUCH safer to check the status of your site, which is what I was going to ask - but please make a backup of the site prior to this operation in any case.

    So-

    1. backup of your site.

    2. close all open files.

    3. open one of your models that contains this spurious markup.

    4. take note of the name of this template (I'll call ".dwt" below)

    Find-

    Replace-

    with nothing else

    that is, remove it.

    Find-

    Replace-

    with nothing else

    that is, remove it.

    Find-