drop table hdr
ORA-00942: table or view does not existMore Details: https://docs.oracle.com/error-help/db/ora-00942
drop table line
ORA-00942: table or view does not existMore Details: https://docs.oracle.com/error-help/db/ora-00942
drop table dtl
ORA-00942: table or view does not existMore Details: https://docs.oracle.com/error-help/db/ora-00942
create table hdr ( a int, b varchar2(30), c varchar2(30) )
Table created.
create table line (a int, b int, c varchar2(30), d varchar2(30))
Table created.
create table dtl (a int, b int, c int, d varchar2(30), e varchar2(30))
Table created.
insert into hdr values (1, 'HEADER1', 'HEADER2')
1 row(s) inserted.
insert into line values (1, 1, 'LINE11', 'LINE12')
1 row(s) inserted.
insert into line values (1, 2, 'LINE21', 'LINE22')
1 row(s) inserted.
insert into dtl values (1, 1, 1, 'DTL111', 'DTL112')
1 row(s) inserted.
insert into dtl values (1, 1, 2, 'DTL211', 'DTL212')
1 row(s) inserted.
insert into dtl values (1, 2, 1, 'DTL121', 'DTL122')
1 row(s) inserted.
insert into dtl values (1, 2, 2, 'DTL221', 'DTL222')
1 row(s) inserted.
drop table hdr
Table dropped.
drop table line
Table dropped.
drop table dtl
Table dropped.
create table hdr ( a int, b varchar2(30), c varchar2(30) )
Table created.
create table line (a int, b int, c varchar2(30), d varchar2(30))
Table created.
create table dtl (a int, b int, c int, d varchar2(30), e varchar2(30))
Table created.
insert into hdr values (1, 'HEADER1', 'HEADER2')
1 row(s) inserted.
insert into line values (1, 1, 'LINE11', 'LINE12')
1 row(s) inserted.
insert into line values (1, 2, 'LINE21', 'LINE22')
1 row(s) inserted.
insert into dtl values (1, 1, 1, 'DTL111', 'DTL112')
1 row(s) inserted.
insert into dtl values (1, 1, 2, 'DTL211', 'DTL212')
1 row(s) inserted.
insert into dtl values (1, 2, 1, 'DTL121', 'DTL122')
1 row(s) inserted.
insert into dtl values (1, 2, 2, 'DTL221', 'DTL222')
1 row(s) inserted.
select * from hdr
A | B | C | 1 | HEADER1 | HEADER2 |
---|
select * from line
A | B | C | D | 1 | 1 | LINE11 | LINE12 | 1 | 2 | LINE21 | LINE22 |
---|
select * from dtl
A | B | C | D | E | 1 | 1 | 1 | DTL111 | DTL112 | 1 | 1 | 2 | DTL211 | DTL212 | 1 | 2 | 1 | DTL121 | DTL122 | 1 | 2 | 2 | DTL221 | DTL222 |
---|