This type of dynamic SQL statement is a SELECT statement where the number and type of host variables is known. The normal sequence of SQL statements is:
- Prepare the statement
- Declare a cursor to hold the results
- Open the cursor
- Fetch the variables
- Close the cursor.