How do I create an Oracle table with nested tables of object types?
问题 I have a highly nested OBJECT TYPE structure that allows me to hold data in a tree-like manner. I'd now like to create a table to cache these objects, but I'm having difficulty getting the table to create. I suspect my problem is the multiple nesting levels, but not sure how to fix. CREATE TYPE STEP_OBJ AS OBJECT ( ID VARCHAR2(20), OTHER_FIELDS VARCHAR2(100)); / CREATE TYPE STEP_TAB_OBJ AS TABLE OF STEP_OBJ; / CREATE TYPE TREE_OBJ AS OBJECT ( STEPS STEP_TAB_OBJ, COMPLETE VARCHAR2(1)); /