My SP :
create procedure ARUN.CREATE_TABLE(in schema_name varchar(25),
in tab_name varchar(25),in tgt_schema_name varchar(25), in
tgt_tab_name varchar(25),in tgt_ts_name varchar(25), in tgt_ix_name
varchar(25))
SPECIFIC CREATABEL
MODIFIES SQL DATA EXTERNAL ACTION DETERMINISTIC
begin
declare TXT varchar(100);
for TXT AS
select ddltext from db2admin.ddllog_3
do
begin
insert into db2admin.ddllog_2 (ddltext) values(TXT);
--execute immediate TXT;
end;
end for;
end ;
Just selecting from one table and inserting into another, all I get is
null in the target table. Does Varchar have something to do in this
issue? This is driving me mad!! Please help...
As far as datatypes are concerned , they all are varchar(100)..
the only data i have in target is the foll 2 rows .
DB2ADMIN
DB2