Subject | Re: [firebird-support] Syntax for input arguments for Stored Procedure from SELECT |
---|---|
Author | unordained |
Post date | 2010-06-03T20:10:36Z |
---------- Original Message -----------
From: "vladman992000" <myles@...>
The way I do it is
select processing_sp.* from (select id from table where id > 100) input_tb left
join processing_sp(input_tb.id) on 1=1;
or
select processing_sp.* from table left join processing_sp(table.id) on 1=1 where
table.id > 100;
I'm not sure that's the *best* way, but it seems to work for me.
-Philip
From: "vladman992000" <myles@...>
> SELECT * FROM PROCESSING_SP(------- End of Original Message -------
> SELECT ID FROM TABLE WHERE ID > 100);
>
> What is the correct syntax for doing this sort of thing in a stored
> procedure input argument set?
>
> Myles
The way I do it is
select processing_sp.* from (select id from table where id > 100) input_tb left
join processing_sp(input_tb.id) on 1=1;
or
select processing_sp.* from table left join processing_sp(table.id) on 1=1 where
table.id > 100;
I'm not sure that's the *best* way, but it seems to work for me.
-Philip