SQL Notes

General Documentation

MySQL

Oracle

Explain Plans

To produce an Explain Plan:

explain plan set statement_id = '<SOME_IDENTIFIER>' for
/* ------ Your SQL here ------ */

To read an Explain Plan:

select operation, options, object_name
  from plan_table
 where statement_id = '<SOME_IDENTIFIER>'
start with id = 0
connect by prior id=parent_id and prior statement_id = statement_id;

 
sql_notes.txt · Last modified: 04/26/2010 22:58 by Daniel Kirkdorffer
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki