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 trigger? : Sql dba
When should I use nosql database?
What will you get by the cursor attribute sql%found?
What is pl sql architecture?
Can delete statement be rollbacked?
how to convert numeric values to character strings? : Sql dba
Advantages and disadvantages of stored procedure?
what are date and time data types in mysql? : Sql dba
What problem one might face while writing log information to a data-base table in pl/sql?
What is aggregate function in sql?
What is t sql in sql server?
How can I speed up sql query?
What does dml mean?
How many joins can you have in sql?
What is a delimiter in sas?