Insert value to an objec table as normal table
SQL>
SQL> create or replace
2 type address as object(
3 id number,
4 street varchar2(100),
5 state varchar2(2),
6 zipcode varchar(11)
7 )
8 /
Type created.
SQL>
SQL> create table address_table of address
2 /
Table created.
SQL>
SQL>
SQL> insert into address_table values ( 1, '1910 Oracle Way', 'VA', '21090' )
2 /
1 row created.
SQL>
SQL> select * from address_table;
ID
----------
STREET
--------------------------------------------------------------------------------
ST ZIPCODE
-- -----------
1
1910 Oracle Way
VA 21090
SQL> drop table address_table;
Table dropped.
SQL>
SQL>
Related examples in the same category