Guest_imported
New member
- Jan 1, 1970
- 0
Hi All!
I have the following object type:
create type address_ty as object
( street varchar2(50),
city varchar2(25),
state char(2),
zip number
)
create type person_ty as object
( name varchar2(25),
address address_ty
)
Based on the above data type, I have created the following object table.
create table customer
( customer_id number,
person person_ty
)
There is another relational table named "customer". I want to insert the records into the above object-relational table "customer" from the relational table "customer" which is in some other schema. How to do it?. The normal style will not work. Any suggestion from anyone?.
The structure of the relational table is as follows:
SQL> desc customer
Name Null? Type
------------------------------ -------- -----------------
CUSTID NUMBER(6)
NAME VARCHAR2(45)
STREET VARCHAR2(40)
CITY VARCHAR2(30)
STATE VARCHAR2(2)
ZIP VARCHAR2(9)
Thanks in advance.....
I have the following object type:
create type address_ty as object
( street varchar2(50),
city varchar2(25),
state char(2),
zip number
)
create type person_ty as object
( name varchar2(25),
address address_ty
)
Based on the above data type, I have created the following object table.
create table customer
( customer_id number,
person person_ty
)
There is another relational table named "customer". I want to insert the records into the above object-relational table "customer" from the relational table "customer" which is in some other schema. How to do it?. The normal style will not work. Any suggestion from anyone?.
The structure of the relational table is as follows:
SQL> desc customer
Name Null? Type
------------------------------ -------- -----------------
CUSTID NUMBER(6)
NAME VARCHAR2(45)
STREET VARCHAR2(40)
CITY VARCHAR2(30)
STATE VARCHAR2(2)
ZIP VARCHAR2(9)
Thanks in advance.....