I got procedure where I want to insert value to variable from Col1:
Procedure insertX
IS
var1 varchar2(100) := '';
check_s1 : = 'select Col1 into '||var1||' from table1';
begin
EXECUTE IMMEDIATE check_s1;
if var1 is null then
...
else
...
end if;
end;
But when I execute it something goes wrong.
As I see select into had error.
How to insert the value to my Var1 and then use it in IF condition?