The following example shows how to query data using a cursor created using the connection's cursor()
method. The data returned is formatted and printed on the console.
The task is to select all employees hired in the year 1999 and print their names and hire dates to the console.