Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INSERTing into O-R Schema

Status
Not open for further replies.

wwwian

Programmer
Jun 27, 2002
12
GB
Using 8.1.7 and need to insert into the following schema (example)

CREATE TYPE y_type AS OBJECT
(
z VARCHAR2(1)
);
/

CREATE TYPE x_type AS OBJECT
(
y y_type
);
/

CREATE TABLE x
(
x x_type
);
/

Need to insert a value into z !

Any ideas ??????
 
Solution is

INSERT INTO x VALUES (x_type(y_type('Z'))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top