Subject | [Fwd: Re: [Firebird-Architect] Re: RFC: Cross database queries] |
---|---|
Author | Fabricio Araujo |
Post date | 2008-07-26T00:17:24Z |
-------- Mensagem original --------
Assunto: Re: [Firebird-Architect] Re: RFC: Cross database queries
Data: Thu, 24 Jul 2008 22:27:38 -0300
De: Fabricio Araujo <fabricioaraujo_rj@...>
Para: Firebird-Architect@yahoogroups.com
ReferĂȘncias: <f8s5kv+2mjr@...>
<01b001c7d4e5$20535540$9902a8c0@martijnws>
Martijn Tonies wrote:
I suggest that, if you have a higher level of syntax, you need to fill
on the lower ones. For example:
on the actual server. You don't need to write the higher levels and is
equivalent
(considering we still are on database db_reports of fb_mainserver instance)
to
Assunto: Re: [Firebird-Architect] Re: RFC: Cross database queries
Data: Thu, 24 Jul 2008 22:27:38 -0300
De: Fabricio Araujo <fabricioaraujo_rj@...>
Para: Firebird-Architect@yahoogroups.com
ReferĂȘncias: <f8s5kv+2mjr@...>
<01b001c7d4e5$20535540$9902a8c0@martijnws>
Martijn Tonies wrote:
> > Well, first question - how does it look from SQL standard POV?.<table>
>
> AFAIK SQL stand. does not define external datasources nor external
> tables.
>
> AFAIK SQL:2003 defines only :
> <catalog>.<schema>
>.. <- the worst syntax I've ever seen.
> > With slightly modified (avoid '@' in favour of '.')
> I suggest also '.' instead of '@' like MS SQL for linked servers:
> <server>.<catalog>.<schema>.<table>
> (<datasource>..<table>)
I suggest that, if you have a higher level of syntax, you need to fill
on the lower ones. For example:
>>fb_mainserver.db_reports.default.customer_tableIf you write fb_mainserver, you have to specify all the other levels. But:
>>security.app_rightsMeans the schema security and table app_rights on the current database
on the actual server. You don't need to write the higher levels and is
equivalent
(considering we still are on database db_reports of fb_mainserver instance)
to
>>fb_mainserver.db_reports.security.app_rightsJust my 2 cents ;-)