Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 8th, 2008, 04:01 PM
Newbie
 
Join Date: Sep 2008
Posts: 1
Default Select and Inserting into two different databases

Hi all,

I am using DB2 v8.2 for windows.

I need to select a table from table 1 in database 1THEN inserting that select result into table 2 in database 2.

In DB2 Command Editor, you have to set a target database to have your SQL statement point to that database.. but, I have one single SQL statement that will be targeting two databases.

Your help is much appreciated.

Thanks.
Reply
  #2  
Old September 9th, 2008, 06:22 AM
Newbie
 
Join Date: Jan 2007
Posts: 27
Default

Basically what you are looking for is federation. Look at this article http://www.ibm.com/developerworks/db2/library/techarticle/0203haas/0203haas.html
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles