Example 1: Using cursors for database query

The example1.cp sample program shows how to use cursors in an interactive query program. The program: