Summary of cursor states and attributes v14

The table summarizes the possible cursor states and the values returned by the cursor attributes.

Cursor state%ISOPEN%FOUND%NOTFOUND%ROWCOUNT
Before OPENFalseINVALID_CURSOR exceptionINVALID_CURSOR exceptionINVALID_CURSOR Exception
After OPEN & before 1st FETCHTrueNullNull0
After 1st successful FETCHTrueTrueFalse1
After nth successful FETCH (last row)TrueTrueFalsen
After n+1st FETCH (after last row)TrueFalseTruen
After CLOSEFalseINVALID_CURSOR exceptionINVALID_CURSOR exceptionINVALID_CURSOR Exception