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 a temp table?
What are analytical functions in sql?
what is a view? : Sql dba
Show code of a cursor for loop.
Do we need commit after truncate?
What is sqlite used for?
Is join same as left join?
How to download oracle sql developer?
What is sql and db2?
What is orm in sql?
What is compound trigger?
How do you modify a column in sql?
How do I run sql?
How do sql databases work?
Explain normalization and what are the advantages of it?