I use GoLang. I have two different DB servers:
- Postgresql
- MS SQL.
For both of them I make a connection each:
db1, err := sql.Open("postgres", psqlconn)
db2, err := sql.Open("sqlserver", u.String())
The connections are working fine.
Now I want to connect data of the first DB with the second DB: using JOIN. Example:
rows, err := db1.Query('select *
from db1.dbname1.tabel
left join db2.dbname2.tabel on db2.dbname2.tabel.id = db1.dbname1.tabel.id;')
But this does not work :( How can I JOIN the two tables together? I am not getting anywhere. Or is there another way to do this?
Thanks for your support!! Matthias