CHADI E. answered 07/01/19
PhD in Systems Engineering with 8+ years expereince in Oracle SQL
i see from your block that you don;t want to take any action if someVar = 'Yes'
then just use NULL inside the If statement. see below:
begin
if :someVar = 'Yes'
then
NULL;
end if;
end; /
Ifyou want to store or display this dummy variable, then you need to delcare it and usine INTO in the dummy sql
like below:
DECLARE
v_dummy NUMBER;
begin
if :someVar = 'Yes'
then
select 1 into v_dummy from dual;
end if;
end; /
hope this helps!