Let’s say I have a procedure with a user input parameter.
Create procedure Match_Record(v_match_ID)
Cursor match is
Select *
From table A
Where not exists(select ‘bbb’ from table B
Where a. v_match_ID = b. v_match_ID);
It won’t compile because v_match_ID is not a valid identifier.
So is execute immediate the only option here?