Subject | Re: [firebird-support] (unknown) |
---|---|
Author | Martijn Tonies |
Post date | 2003-09-01T11:07:56Z |
Hi,
I would change the following:
And then do a COMMIT.
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
> I am writting stored procedure which will fire many delete queriesIs the below part your actual code that you're trying to run? If so,
> on the basis of the number as a input parameter.When in the stored
> procedure i use only one delete statement and use :calapp_id in
> it .it gets created and committed.but if i use more than one delete
> statement which use same variable in where clause,then create
> procedure query gets executed bt commit gives an error.I have given
> the code ->
I would change the following:
> eg:-END##
>
> SET TERM ##;
> CREATE PROCEDURE Z(
> CALAPP_ID INTEGER
> )
> AS
> BEGIN
> delete from calappparams A where A.caid = :calapp_id;
> delete from hostedapps where caid = :calapp_id;
> END ##;
> SET TERM ##SET TERM ; ##
And then do a COMMIT.
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com