How do we clear out a DBMS_SQL.VARCHAR2S variable so that it can be reused? The declaration goes as below:
DECLARE
l_updt_stmnt DBMS_SQL.VARCHAR2S;
BEGIN
Open LOOP
l_updt_stmnt(1) := 'some dynamic sql statements';
<parse the above statement>
Close LOOP;
EXCEPTION
WHEN OTHERS THEN
<Print statement>
END;
I just want to reuse the l_updt_stmnt to generate dynamic sql statements multiple times.
Can anyone help.?