5. Working with a Database : How You Can Access a Database with Standard SQL Statements : How You Can Use Cursors to Access the Database : How You Can Declare a Cursor
 
Share this page                  
How You Can Declare a Cursor
Before you can open a cursor, you must create the CursorObject object for the new cursor by declaring a global or local reference variable of type CursorObject. The syntax is:
cursor_var_name = CursorObject
For example, the following code line declares a reference variable named cust_cursor that points to a cursor object:
cust_cursor = CursorObject;