12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using the <strong>SQL</strong> Worksheet for Queriesmargin toggles the setting and unsetting of breakpoints.) This will enable you tosee the values of the matching_title and matching_rating variables as executionproceeds in debug mode.4. Right-click LIST_A_RATING2 in the Connections navigator hierarchy display andselect Debug. Ensure that the line IN_RATING => IN_RATING has been changedto IN_RATING => 10, and click OK.5. In the debugging toolbar, click the Resume icon to have execution proceed,stopping at the next breakpoint; note the display in the Smart Data tab in thelower right part of the window. Repeatedly click the Resume icon, noticingespecially the value of the rating variable as each row is processed. You will noticethe first incorrect result when you see that the title Get Rich Really Fast is included,even though its rating is only 1 (obviously less than 10). (See the screen illustrationwith debugging information in Running and Debugging Functions andProcedures.)6. When you have enough information to fix the problem, you can click theTerminate icon in the debugging toolbar.From this debugging session, you know that to fix the logic error, you should changerating

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!