Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to copy and paste entire record between two similar tables in different schemas of same database

Posted on 2009-04-09
2
Medium Priority
?
504 Views
Last Modified: 2013-12-18
Hi,

I need to export and import( or otherwords copy and paste) entire record between two same structured  tables in different schemas ( say table_A is in schema_A and table_B is in schema_B. Table_B supposed to be same  as Table_A both with structure and data but  couple  of records missing which i need to copy from Table_A and paste into table_B)  of same database. What is the quickest way to do it. Any sample code, ideas, resources highly appreciated. Thanks in advance.
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
flow01 earned 2000 total points
ID: 24111479
insert into schema_b.table_b b
select * from schema_a.table_a a
where not exists (select 1 from  a.id = b.id)
0
 
LVL 7

Author Closing Comment

by:gudii9
ID: 31568734
Thank you very much. I appreciate it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question