🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11115

Re: cross database select

#11115
From: Ivan Prenosil
Date: Fri, 13 Dec 2002 09:26
20 lines
1554 bytes
> i have two databases ONE and TWO.
> Is it possible with Interbase to execute cross databases queries like this :
> select * from TWO.tableName (i'm connected to database ONE)

You can
- connect to several databases at the same time, and
- start single transaction against multiple database

But if you look at API, you will find that each command is executed
against single database/single transaction.

It means your example can work
> select * from tableName
but you can't reference both databases in single command like
> select * from ONE.mytable JOIN TWO.tableName ON a=b


--
Ivan
http://www.volny.cz/iprenosil/interbase
Technical Details
Message-ID: <3df9a818$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3df9a3db$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,9840c69810029e87
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-13 01:39:21 PST
From: "Ivan Prenosil" <prenosil@ms.anet.cz>
Newsgroups: borland.public.interbase.sql
References: <3df9a3db$1@newsgroups.borland.com>
Subject: Re: cross database select
Date: Fri, 13 Dec 2002 10:26:55 +0100
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 194.108.237.239
Message-ID: <3df9a818$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039771672 194.108.237.239 (13 Dec 2002 01:27:52 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail