I would like to select data from DB2/400 and insert it into a table in a Windows DB2 in one SQL. What is the best way to accomplish this? I am able to do this between two Microsoft SQL Servers by linking one database to another. Is there something similar for DB2?
Another alternative supported by DB2 UDB for Windows is:
DECLARE c1 CURSOR FOR SELECT * FROM db2iseries_nickname ; LOAD db2luw_table FROM c1 OF CURSOR REPLACE
MORE INFORMATION ON THIS TOPIC
Visit the ITKnowledge Exchange and get answers to your DB2 questions fast.
Check out this Search400.com Featured Topic: Expert advice on DB2
Search400.com's targeted search engine: Get relevant information on DB2/400.
The Best Web Links: Tips, tutorials and more.
Dig deeper on DB2 UDB (universal databases)
Related Q&A from Kent Milligan
IBM did not change the default of the reuse deleted files function to YES for physical files in order to minimize the impact on any existing ...continue reading
To solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ...continue reading
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.