Subject | Re: [firebird-support] procedure question |
---|---|
Author | Alexandre Benson Smith |
Post date | 2004-05-31T22:05:51Z |
dleec45 wrote:
Take a look in Execute Statement on FB 1.5 release notes
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda.
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
>I have a situation where I need to add a record to an address tableLee,
>and return the ID (key) to the record which I can do, but in addition
>to returning the key, I want to be able to pass to the procedure the
>query to perform instead of having it inside.
>
>DECLARE variable var_id integer;
>BEGIN
>execute procedure call_gen_id
>returning_values :var_id;
>insert into t1 (pkey, a_string) **** this is what I want to
>values (:var_id, :in_string); **** pass in as it may be a
>new_id = :var_id; **** different table
>string_sent = :in_string;
> SUSPEND;
>END
>
>Hope this is clear. Regards, Lee
>
>
Take a look in Execute Statement on FB 1.5 release notes
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda.
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br