Are you asking about connecting to two databases in the same sesssion ..
Then you can use
db2 "set client connect 2"
db2 connect to datab1
db2 connect to datab2 (connects to datab2 but retains connection to datab1)
db2 set connection datab1 (switches the connection to datab1)
HTH
Sathyaram
Quote:
Originally posted by cgprakash
DB2 : V7.2
OS : AIX 4.3.3
I need to write a sql statement which will connect two database's tables. Both databases are in the same instance. How can we acheive this? Your help plse. Thank you.
Regards
Prakash
|