Subject | Re: [firebird-support] Parameterised procedure with a dynamic array. |
---|---|
Author | Alan McDonald |
Post date | 2012-02-15T20:22:34Z |
On Thursday, February 16, 2012, sergiogarciaruso <sergiogarciaruso@...>
wrote:
FB v2.5 SS installed. I want to do something like this:
the IN clause.
Alan
regards
Alan McDonald
[Non-text portions of this message have been removed]
wrote:
> Hi. I would like to parameterize a procedure with a dynamic array. Isthere such functionality in Firebird? And if so, how is the syntax? I have
FB v2.5 SS installed. I want to do something like this:
>dynamic array
> SET TERM ^ ;
> CREATE OR ALTER PROCEDURE MyProc(
> p_inputparam INTEGER,
> p_dyn_array My dynamic array ¿HOW TO DO THAT?
> )
> AS
> DECLARE i INT;
> DECLARE Total INT;
> BEGIN
> Total = SIZEOF(p_dyn_array); --Retrive the number of elements of my
> i = 0;I don't know what the do something is but it could be as simple as using
> WHILE (i < Total) DO BEGIN
> i = i + 1;
> -- Do something
> END
> END^
> SET TERM ; ^
the IN clause.
Alan
>--
> Thanks in advance.
> Sergio (sorry my english)
>
>
>
>
> ------------------------------------
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://www.firebirdsql.org and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Yahoo! Groups Links
>
>
>
>
regards
Alan McDonald
[Non-text portions of this message have been removed]