Concept Flow - CURSOR concept and usage
Declare Cursor
Open Cursor
Fetch Row
Process Row
More Rows?
Yes→Fetch Row
No
Close Cursor
Deallocate Cursor
This flow shows how a cursor is declared, opened, rows fetched one by one, processed, then closed and deallocated.
