Subject | Re: Multiple prepared statements in Jaybird/Firebird |
---|---|
Author | Bill Oliver |
Post date | 2005-05-11T20:11:46Z |
Great, thanks!!!
-bill
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
-bill
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
> > Action: How is this done efficiently in Firebird?ATOMIC,
>
> There is thing called EXECUTE BLOCK, probably similar to the BEGIN
> but it is available in FB 2.0 (and probably in Vulcan). In Firebird1.5 you
> could use EXECUTE STATEMENT in a stored procedure, something like:only idea
>
> CREATE PROCEDURE EXEC_BLOCK(statement VARCHAR)
> AS BEGIN
> EXECUTE STATEMENT :statement;
> END
>
> I hope that it can execute multiple statements. If not, then the
> is to generate a stored procedure dynamically, execute it and thendrop it.
>limit for
> but you have to check the size limitations, anyway there is a 64k
> an SQL statement.
>
> Roman