Answer Posted / chandu
create type addresstype as object
(hno varchar2(5),street varchar2(10),
city varchar2(10),pin varchar2(5));
Now we use this object in creating table like this.
create table employee(empno number(5),job varchar2(10),sal
number(5),empaddress addresstype);
insert into employee
values(101,'clerk',6000,addresstype('114a','gandhi','hyd',50001));
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the difference between rownum pseudo column and row_number() function? : Sql dba
How do I find sql profiler?
What is the difference between mdf and ndf files?
Which join is like inner join?
how can we optimize or increase the speed of a mysql select query? : Sql dba
What is sql exception?
How much does sqlite cost?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
What are records give examples?
What is sql procedures and functions?
Does pdo prevent sql injection?
What are the two different parts of the pl/sql packages?
What is a unique key and primary key and foreign key?
What is compute?
How do you break a loop in pl sql?