Re: [INTERFACES] Data Migration
От | Mark Dalphin |
---|---|
Тема | Re: [INTERFACES] Data Migration |
Дата | |
Msg-id | 3846B461.4A346A92@amgen.com обсуждение исходный текст |
Ответ на | [INTERFACES] Data Migration (Robert Hiltibidal <rob@y2k.state.il.us>) |
Список | pgsql-interfaces |
I would find this kind of extension extremely useful! Databases proliferate here at an unbelievable rate; and then, 3 months later, someone needs to "join across the DBs". To do this across DBMS, as suggested below, sounds difficult, but then, I'm not writing the code... Mark > > On Wed, 1 Dec 1999, Tom Lane wrote: > > > No; in Postgres, different databases are different universes ... and > > > there are no wormholes in SQL ;-). > > > > Does SQL92 say no wormholes? Is it a major pain to code this? I've got > > no complaints as I can see ways to do it from the application level. > > I don't know what SQL92 says and. like you, I have easy ways to do this > at the app level but for what it's worth, here's a suggested syntax > for this in case someone want to implement it. > > OPEN DATABASE [AS ] [HOST host] [PORT port] [TYPE ] > > And use it as > > OPEN DATABASE db1 HOST 'other.what.com'; > SELECT * FROM mytab, db1.othertab yourtab > WHERE mytab.f1 = yourtab.f1; > > or > > SELECT mytab.f1, db1.yourtab.f2, ... > > The TYPE attribute allows for opening other databases such as Oracle, etc. > -- Mark Dalphin email: mdalphin@amgen.com Mail Stop: 29-2-A phone: +1-805-447-4951 (work) One Amgen Center Drive +1-805-375-0680 (home) Thousand Oaks, CA 91320 fax: +1-805-499-9955 (work) ************
В списке pgsql-interfaces по дате отправления: