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 to use "in" parameter properly?
In which language oracle has been developed?
What is oracle database client?
What happens to the current transaction if the session is killed?
How to divide query output into groups in oracle?
how to join query for one source type is oracle another source type is sql server ?
In AP we done Customizations for Late Payments Charges. For Reporting Purpose What are the Documents Prepared for Customer Understanding??
What is a package ? What are the advantages of package ?
What is transport network substrate (tns) in oracle?
How would you change old and new values in an insert, delete and update triggers?
How to connect to the server with user account: sys?
How to convert numbers to characters in oracle?
What do you mean by group by clause?
What is bulk load in oracle?
What is a data dictionary and how can it be created?