I have the following record
Cursor my_cursor Is Select y, x, z From table Order by y;
my_record my_cursor%rowtype;
Knowing that the record x
property is null
, am trying to check it against a value in a while loop and am getting the following results:
While my_record.x != 'TXT' Loop // loop does not enter
While NVL(my_record.x, '') != 'TXT' Loop // loop does not enter
While NVL(my_record.x, ' ') != 'TXT' Loop // loop enters
I was wondering why the first 2 tries are not entering in the loop knowing that when debugging, the return value is true of the expression?