Hi,
I want table structure shown below. How can i create this ?
Num Name Address
Addr1 Addr2
I want Addr1 and Addr2 under Address column.
How can i achive this ? Is it possible ?
Answer Posted / begum
hi this is really work
create type addr as object (
add1 varchar2(15),
add2 varchar2(15));
/
create table nest1 (
id number(2),
name varchar2(10),
address addr);
insert into nest1 values(10,'uma',addr('10th
main','bangalore'));
/
insert into nest1 values(20,'sami',addr('77g
colony','chennai'));
SQL> select * from nest1;
ID NAME
---------- ----------
ADDRESS(ADD1, ADD2)
--------------------------------------------
10 uma
ADDR('10th main', 'bangalore')
20 sami
ADDR('77g colony', 'chennai')
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
How can we find out the duplicate values in an oracle table?
How to call a stored function with parameters?
What is a user account in oracle?
What are the built-in functions used for sending Parameters to forms ?
How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?
What are the uses of linked server and explain it in detail?
What is data file?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
What is varray?
State any two functions of oracle?
Why do you create or replace procedures rather that drop and recreate.
What is archive log in Oracle?
How to get execution path reports on query statements?
Which are the five query types available in oracle?
What is the use of aggregate functions in oracle?