Jump to content

Get data from different database using SELECT


ylkien

Recommended Posts

Hi guys,

 

I'm trying to get data from DB2 (which has the table "test2"), which will be used in DB1 (which has the table "test1").

 

I tried the command below, but it doesn't work. Do I need a script? If so, where can I learn it?

 

Select * from test1 where id in ( select id from test2)

 

 

Thanks!

  • 5 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.