Subject | Re: [firebird-support] multi-database query |
---|---|
Author | Ivan Prenosil |
Post date | 2005-03-22T08:38:58Z |
> Is it possible to do cross database (multi-dababase) connection andSingle transaction can span several databases (two-phase commit it then used).
> query?
>
> Can someone explain how to connect and do a multiple database query?
> I need to select information from one database to insert into another.
>
> example:
>
> SELECT EMPNO FROM Database1:TABLE_EMP, Database2:TABLE_EMPNAMES
> WHERE ...
Single command can be execute in one of those databases only.
i.e. you can (inside one transaction) select from one database
and insert into another database (using two separate commands),
but you can't do the same using single command like
insert into db1.tab select id from db2.tab;
Ivan