In a memo i put 1 pl/sql block and then execute it with tzquery (Zeos). That works fine.
When i put 2 pl/sql block in the memo, ik get a warning than a " begin" is found at line 11. That is the begin of my second pl/sql block.
Is it possible to put a few pl/sql blocks in a memo en execute a zquery? it works fine with the sqlquery in sqldb. But i want to use zeos for all my query's so i tried Zeos.
this is my sql:
begin
execute immediate 'drop table tijd_oefen';
exception
when others then
if sqlcode != -942 then
raise;
end if;
end;
begin
execute immediate 'create table tijd_oefen as select * from gb_hek';
exception
when others then
if sqlcode != -942 then
raise;
end if;
end;