I have create a procedure but, it doesn't run.
Someone can help me?
CREATE PROCEDURE DB2ADMIN.DELETE_TABLE
(IN TABLE CHARACTER(50)
)
SPECIFIC DB2ADMIN.DELETE_TABLE
LANGUAGE SQL
NOT DETERMINISTIC
CALLED ON NULL INPUT
MODIFIES SQL DATA
INHERIT SPECIAL REGISTERS
begin
declare v_stmt varchar(200);
SET v_stmt = 'alter table ' || TABLE || ' activate not logged initially with empty table';
PREPARE s1 from v_stmt;
EXECUTE s1;
end;
Thanks any way...
Someone can help me?
CREATE PROCEDURE DB2ADMIN.DELETE_TABLE
(IN TABLE CHARACTER(50)
)
SPECIFIC DB2ADMIN.DELETE_TABLE
LANGUAGE SQL
NOT DETERMINISTIC
CALLED ON NULL INPUT
MODIFIES SQL DATA
INHERIT SPECIAL REGISTERS
begin
declare v_stmt varchar(200);
SET v_stmt = 'alter table ' || TABLE || ' activate not logged initially with empty table';
PREPARE s1 from v_stmt;
EXECUTE s1;
end;
Thanks any way...