Hi,
I have a cursor on table:
CURSOR curMyTable IS SELECT col1 FROM MyTable
WHERE col2 = v_programVariable1
AND col3 = v_programVariable1;
As per business condition, either one of v_programVariable1 and v_programVariable2 has to be NULL.
Wonder If my curosr is OK? What I see is, cursor fails and doesn't select col1 at all.
Can suggest some approach to handle this? May be, I should write two cursors? OR use NVL for v_programVariable1 etc..?
Thanks,
Sachin
I have a cursor on table:
CURSOR curMyTable IS SELECT col1 FROM MyTable
WHERE col2 = v_programVariable1
AND col3 = v_programVariable1;
As per business condition, either one of v_programVariable1 and v_programVariable2 has to be NULL.
Wonder If my curosr is OK? What I see is, cursor fails and doesn't select col1 at all.
Can suggest some approach to handle this? May be, I should write two cursors? OR use NVL for v_programVariable1 etc..?
Thanks,
Sachin