Summary of Cursor States and Attributes v13

The following 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