lang_explain.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html><head>
  3. <title>SQLite Query Language: EXPLAIN</title>
  4. <style type="text/css">
  5. body {
  6. margin: auto;
  7. font-family: Verdana, sans-serif;
  8. padding: 8px 1%;
  9. }
  10. a { color: #45735f }
  11. a:visited { color: #734559 }
  12. .logo { position:absolute; margin:3px; }
  13. .tagline {
  14. float:right;
  15. text-align:right;
  16. font-style:italic;
  17. width:240px;
  18. margin:12px;
  19. margin-top:58px;
  20. }
  21. .toolbar {
  22. font-variant: small-caps;
  23. text-align: center;
  24. line-height: 1.6em;
  25. margin: 0;
  26. padding:1px 8px;
  27. }
  28. .toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
  29. .toolbar a:visited { color: white; }
  30. .toolbar a:hover { color: #80a796; background: white; }
  31. .content { margin: 5%; }
  32. .content dt { font-weight:bold; }
  33. .content dd { margin-bottom: 25px; margin-left:20%; }
  34. .content ul { padding:0px; padding-left: 15px; margin:0px; }
  35. /* rounded corners */
  36. .se { background: url(images/se.png) 100% 100% no-repeat #80a796}
  37. .sw { background: url(images/sw.png) 0% 100% no-repeat }
  38. .ne { background: url(images/ne.png) 100% 0% no-repeat }
  39. .nw { background: url(images/nw.png) 0% 0% no-repeat }
  40. </style>
  41. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  42. </head>
  43. <body>
  44. <div><!-- container div to satisfy validator -->
  45. <a href="lang.html">
  46. <h2 align="center">SQL As Understood By SQLite</h2></a><h1>EXPLAIN</h1><h4><a href="syntaxdiagrams.html#sql-stmt">sql-stmt:</a></h4><blockquote> <img alt="syntax diagram sql-stmt" src="images/syntax/sql-stmt.gif"></img> </blockquote>
  47. <p>An SQL statement can be preceded by the keyword "EXPLAIN" or
  48. by the phrase "EXPLAIN QUERY PLAN". Either modification causes the
  49. SQL statement to behave as a query and to return information about
  50. how the SQL statement would have operated if the EXPLAIN keyword or
  51. phrase had been omitted.</p>
  52. <p>When the EXPLAIN keyword appears by itself it causes the statement
  53. to behave as a query that returns the sequence of
  54. virtual machine instructions it would have
  55. used to execute the command had the EXPLAIN keyword not been present.
  56. When the EXPLAIN QUERY PLAN phrase appears, the statement returns
  57. high-level information about what indices would have been used.</p>
  58. <p>The output from EXPLAIN and EXPLAIN QUERY PLAN is intended for
  59. interactive analysis and troubleshooting only. The details of the
  60. output format are subject to change from one release of SQLite to the next.
  61. Applications should not use EXPLAIN or EXPLAIN QUERY PLAN since
  62. their behavior is undocumented, unspecified, and variable.</p>