Subject | Re: [firebird-support] Multiple Databases, how |
---|---|
Author | Helen Borrie |
Post date | 2005-03-18T12:22:14Z |
At 12:11 PM 18/03/2005 +0000, you wrote:
./hb
>Sorry, did not find the correct recipe in Helen's book for this one:That recipe will be in a different book, about a different database engine...
>
>How do I use information from different databases in on Stored Procedure?
>I know that I cannot join them, I just within a loop want to fill theIt's not supported.
>row-buffer with data from different sources like this:
>
>if (:statusvariable = '01') then
>begin
> select
> [Database1].table_a.anyfield
> from
> [Database1].table_a
> where :IDvariable = 'thisID';
>end
>if (:statusvariable = '02') then
>begin
> select
> [Database2].table_b.anyfield
> from
> [Database2].table_b
> where :IDvariable = 'thisID';
>end
>
>What is the correct syntax to use 2 databases in 1 procedure?
./hb