Thanks for the question, Sunil Kumar.
Asked: December 15, 2016 - 3:36 am UTC
Last updated: December 15, 2016 - 5:21 am UTC
Version: 12c
Viewed 1000+ times
You Asked
Hi,
I have table a and say my user1 is inserting data into table a
so my table a is having 100 rows
I have table b and say my user2 is inserting data into table b
so my table b is having 50 rows
now I have user3 and I have table ab where I want to merge the rows of a & b
is there any command that is easy to say
rename table a to ab append
rename table b to ab append
rather than saying insert into ab select * from a union all select * from b;
Many Thanks,
Sunil Kumar Noothi.
and Connor said...
If you want to *copy* the data to user 3, then you must actually copy it.
If you just want to *show* the data to user 3, then you could do:
create view user3.all_the_data as
select * from user1.a
union all
select * from user2.b
Is this answer out of date? If it is, please let us know via a Comment