Page 423
Q What are the general steps in using any of the operations?
A You need to open a cursor, parse the statements to be executed at runtime, bind any variables if necessary, define columns if using SELECT statements, execute the query, retrieve the data from the buffer into variables, and finally close the cursor.
Q How can you determine if the last operation was a success?
A In addition to using exceptions, you can use the LAST_SQL_FUNCTION_CODE function to verify that the operation performed successfully, based upon the return code.
You can now review your knowledge of the DBMS_SQL package, starting with a quiz, followed by some challenging exercises. You will practice writing queries, DML and DDL statements, and anonymous blocks with the DBMS_SQL package. You can find the answers in Appendix A, "Answers."
Page 424