System.Data.SQLite
Check-in [0d2c14e945]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Pickup the SQLite core library 3.14.2 docs from upstream.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0d2c14e945fc4ac180a78b33bf5ddca5d285c5b2
User & Date: mistachkin 2016-09-12 21:28:18
Context
2016-09-12
21:35
Further enhance backward compatibility of the 'vtab.tcl' doc tool. check-in: 5a46d020f4 user: mistachkin tags: trunk
21:28
Pickup the SQLite core library 3.14.2 docs from upstream. check-in: 0d2c14e945 user: mistachkin tags: trunk
21:18
Even more updates to the 'vtab.tcl' doc tool. check-in: dfedc189bf user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Doc/Extra/Core/lang.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>Query Language Understood by SQLite</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
           75  +</div>
   138     76   
   139     77   
   140     78   <h1 align=center>SQL As Understood By SQLite</h1>
   141     79   
   142     80   <p>SQLite understands most of the standard SQL
   143     81   language.  But it does <a href="omitted.html">omit some features</a>
   144     82   while at the same time
................................................................................
   149     87   <a href="syntaxdiagrams.html">syntax diagrams</a>.
   150     88   
   151     89   <p>The following syntax documentation topics are available:</p>
   152     90   
   153     91   <table width="100%" cellpadding="5" border="0">
   154     92   <tr><td valign="top"><ul>
   155     93   
   156         -<li><a href="lang_aggfunc.html">aggregate functions</a></li><li><a href="lang_altertable.html">ALTER TABLE</a></li><li><a href="lang_analyze.html">ANALYZE</a></li><li><a href="lang_attach.html">ATTACH DATABASE</a></li><li><a href="lang_transaction.html">BEGIN TRANSACTION</a></li><li><a href="lang_comment.html">comment</a></li><li><a href="lang_transaction.html">COMMIT TRANSACTION</a></li><li><a href="lang_corefunc.html">core functions</a></li><li><a href="lang_createindex.html">CREATE INDEX</a></li><li><a href="lang_createtable.html">CREATE TABLE</a></li><li><a href="lang_createtrigger.html">CREATE TRIGGER</a></li><li><a href="lang_createview.html">CREATE VIEW</a></li><li><a href="lang_createvtab.html">CREATE VIRTUAL TABLE</a></li></ul></td><td valign="top"><ul><li><a href="lang_datefunc.html">date and time functions</a></li><li><a href="lang_delete.html">DELETE</a></li><li><a href="lang_detach.html">DETACH DATABASE</a></li><li><a href="lang_dropindex.html">DROP INDEX</a></li><li><a href="lang_droptable.html">DROP TABLE</a></li><li><a href="lang_droptrigger.html">DROP TRIGGER</a></li><li><a href="lang_dropview.html">DROP VIEW</a></li><li><a href="lang_transaction.html">END TRANSACTION</a></li><li><a href="lang_explain.html">EXPLAIN</a></li><li><a href="lang_expr.html">expression</a></li><li><a href="lang_indexedby.html">INDEXED BY</a></li><li><a href="lang_insert.html">INSERT</a></li><li><a href="lang_keywords.html">keywords</a></li></ul></td><td valign="top"><ul><li><a href="lang_conflict.html">ON CONFLICT clause</a></li><li><a href="pragma.html#syntax">PRAGMA</a></li><li><a href="lang_reindex.html">REINDEX</a></li><li><a href="lang_savepoint.html">RELEASE SAVEPOINT</a></li><li><a href="lang_replace.html">REPLACE</a></li><li><a href="lang_transaction.html">ROLLBACK TRANSACTION</a></li><li><a href="lang_savepoint.html">SAVEPOINT</a></li><li><a href="lang_select.html">SELECT</a></li><li><a href="lang_update.html">UPDATE</a></li><li><a href="lang_vacuum.html">VACUUM</a></li><li><a href="lang_with.html">WITH clause</a></li>
           94  +<style>
           95  +#listtab26 tr td {vertical-align:top;}
           96  +</style>
           97  +<table id='listtab26' width='100%'></table>
           98  +<script>
           99  +var listitems26 = [{"u":"lang_aggfunc.html","x":"aggregate functions","s":0},
          100  +{"u":"lang_altertable.html","x":"ALTER TABLE","s":0},
          101  +{"u":"lang_analyze.html","x":"ANALYZE","s":0},
          102  +{"u":"lang_attach.html","x":"ATTACH DATABASE","s":0},
          103  +{"u":"lang_transaction.html","x":"BEGIN TRANSACTION","s":0},
          104  +{"u":"lang_comment.html","x":"comment","s":0},
          105  +{"u":"lang_transaction.html","x":"COMMIT TRANSACTION","s":0},
          106  +{"u":"lang_corefunc.html","x":"core functions","s":0},
          107  +{"u":"lang_createindex.html","x":"CREATE INDEX","s":0},
          108  +{"u":"lang_createtable.html","x":"CREATE TABLE","s":0},
          109  +{"u":"lang_createtrigger.html","x":"CREATE TRIGGER","s":0},
          110  +{"u":"lang_createview.html","x":"CREATE VIEW","s":0},
          111  +{"u":"lang_createvtab.html","x":"CREATE VIRTUAL TABLE","s":0},
          112  +{"u":"lang_datefunc.html","x":"date and time functions","s":0},
          113  +{"u":"lang_delete.html","x":"DELETE","s":0},
          114  +{"u":"lang_detach.html","x":"DETACH DATABASE","s":0},
          115  +{"u":"lang_dropindex.html","x":"DROP INDEX","s":0},
          116  +{"u":"lang_droptable.html","x":"DROP TABLE","s":0},
          117  +{"u":"lang_droptrigger.html","x":"DROP TRIGGER","s":0},
          118  +{"u":"lang_dropview.html","x":"DROP VIEW","s":0},
          119  +{"u":"lang_transaction.html","x":"END TRANSACTION","s":0},
          120  +{"u":"lang_explain.html","x":"EXPLAIN","s":0},
          121  +{"u":"lang_expr.html","x":"expression","s":0},
          122  +{"u":"lang_indexedby.html","x":"INDEXED BY","s":0},
          123  +{"u":"lang_insert.html","x":"INSERT","s":0},
          124  +{"u":"lang_keywords.html","x":"keywords","s":0},
          125  +{"u":"lang_conflict.html","x":"ON CONFLICT clause","s":0},
          126  +{"u":"pragma.html#syntax","x":"PRAGMA","s":0},
          127  +{"u":"lang_reindex.html","x":"REINDEX","s":0},
          128  +{"u":"lang_savepoint.html","x":"RELEASE SAVEPOINT","s":0},
          129  +{"u":"lang_replace.html","x":"REPLACE","s":0},
          130  +{"u":"lang_transaction.html","x":"ROLLBACK TRANSACTION","s":0},
          131  +{"u":"lang_savepoint.html","x":"SAVEPOINT","s":0},
          132  +{"u":"lang_select.html","x":"SELECT","s":0},
          133  +{"u":"lang_update.html","x":"UPDATE","s":0},
          134  +{"u":"lang_vacuum.html","x":"VACUUM","s":0},
          135  +{"u":"lang_with.html","x":"WITH clause","s":0}];
          136  +var j = 0;
          137  +var w = Math.max(document.documentElement.clientWidth,  window.innerWidth || 0);
          138  +var nCol = Math.floor(w/340);
          139  +if(nCol<=0) nCol=1;
          140  +var nRow = Math.ceil((listitems26.length+1)/nCol);
          141  +var h="<tr><td><ul class='multicol_list'>"
          142  +var ea
          143  +for(var i=0; i<listitems26.length; i++){
          144  +  if( (++j)>nRow ){
          145  +    h += "</ul></td>\n<td><ul class='multicol_list'>\n";
          146  +    j = 1;
          147  +  }
          148  +  if(listitems26[i].u=="" || listitems26[i].s==2){
          149  +    h += "<li>"
          150  +    ea = ""
          151  +  }else{
          152  +    h += "<li><a href='";
          153  +    h += listitems26[i].u;
          154  +    h += "'>";
          155  +    ea = "</a>"
          156  +  }
          157  +  if(listitems26[i].s==2 || listitems26[i].s==3) h += "<s>"
          158  +  h += listitems26[i].x;
          159  +  if(listitems26[i].s==2 || listitems26[i].s==3) h += "</s>"
          160  +  h += ea
          161  +  if(listitems26[i].s==1) h += "<small><i>(exp)</i></small>\n";
          162  +  if(listitems26[i].s==3) h += "&sup1\n";
          163  +  if(listitems26[i].s==4) h += "&sup2\n";
          164  +  if(listitems26[i].s==5) h += "&sup3\n";
          165  +}
          166  +document.getElementById("listtab26").innerHTML = h;
          167  +</script>
          168  +
   157    169   </ul></td></tr></table>
   158    170   
   159    171   <p>The routines <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>, <a href="c3ref/prepare.html">sqlite3_prepare()</a>,
   160    172   <a href="c3ref/prepare.html">sqlite3_prepare16()</a>, <a href="c3ref/prepare.html">sqlite3_prepare16_v2()</a>, 
   161    173   <a href="c3ref/exec.html">sqlite3_exec()</a>, and <a href="c3ref/free_table.html">sqlite3_get_table()</a> accept
   162    174   an SQL statement list (sql-stmt-list) which is a semicolon-separated
   163    175   list of statements.</p>
   164    176   
   165         -<p><b><a href="syntax/sql-stmt-list.html">sql-stmt-list:</a></b></p><blockquote>
          177  +<p><b><a href="syntax/sql-stmt-list.html">sql-stmt-list:</a></b></p><div class='imgcontainer'>
   166    178    <img alt="syntax diagram sql-stmt-list" src="images/syntax/sql-stmt-list.gif"></img>
   167         - </blockquote>
          179  + </div>
   168    180   
   169    181   
   170    182   <p>Each SQL statement in the statement list is an instance of the
   171    183   following:</p>
   172    184   
   173         -<p><b><a href="syntax/sql-stmt.html">sql-stmt:</a></b></p><blockquote>
          185  +<p><b><a href="syntax/sql-stmt.html">sql-stmt:</a></b></p><div class='imgcontainer'>
   174    186    <img alt="syntax diagram sql-stmt" src="images/syntax/sql-stmt.gif"></img>
   175         - </blockquote>
          187  + </div>
   176    188   
   177    189   
   178    190   

Changes to Doc/Extra/Core/lang_aggfunc.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: Aggregate Functions</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Aggregate Functions</h2></div>
   135     77   
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Aggregate Functions</h2>
   139     78   
   140     79   <p>
   141     80   The aggregate functions shown below are available by default.  Additional
   142     81   aggregate functions written in C may be added using the 
   143     82   <a href="c3ref/create_function.html">sqlite3_create_function()</a></a>
   144     83   API.</p>
   145     84   
................................................................................
   148     87   can be preceded by the keyword DISTINCT.  In such cases, duplicate
   149     88   elements are filtered before being passed into the aggregate function.
   150     89   For example, the function "count(distinct X)" will return the number
   151     90   of distinct values of column X instead of the total number of non-null
   152     91   values in column X.
   153     92   </p>
   154     93   
   155         -<table border=0 cellpadding=10>
   156         -<tr><td valign="top" align="right" width="120"><a name="avg"></a>
   157         -avg(<i>X</i>)</td><td valign="top">
           94  +<style>
           95  +#listtab28 tr td {vertical-align:top;}
           96  +</style>
           97  +<table id='listtab28' width='100%'></table>
           98  +<script>
           99  +var listitems28 = [{"u":"lang_aggfunc.html#avg","x":"avg(X)","s":0},
          100  +{"u":"lang_aggfunc.html#count","x":"count(*)","s":0},
          101  +{"u":"lang_aggfunc.html#count","x":"count(X)","s":0},
          102  +{"u":"lang_aggfunc.html#groupconcat","x":"group_concat(X)","s":0},
          103  +{"u":"lang_aggfunc.html#groupconcat","x":"group_concat(X,Y)","s":0},
          104  +{"u":"lang_corefunc.html#maxoreunc","x":"max(X)","s":0},
          105  +{"u":"lang_corefunc.html#minoreunc","x":"min(X)","s":0},
          106  +{"u":"lang_aggfunc.html#sumunc","x":"sum(X)","s":0},
          107  +{"u":"lang_aggfunc.html#sumunc","x":"total(X)","s":0}];
          108  +var j = 0;
          109  +var w = Math.max(document.documentElement.clientWidth,  window.innerWidth || 0);
          110  +var nCol = Math.floor(w/225);
          111  +if(nCol<=0) nCol=1;
          112  +var nRow = Math.ceil((listitems28.length+1)/nCol);
          113  +var h="<tr><td><ul class='multicol_list'>"
          114  +var ea
          115  +for(var i=0; i<listitems28.length; i++){
          116  +  if( (++j)>nRow ){
          117  +    h += "</ul></td>\n<td><ul class='multicol_list'>\n";
          118  +    j = 1;
          119  +  }
          120  +  if(listitems28[i].u=="" || listitems28[i].s==2){
          121  +    h += "<li>"
          122  +    ea = ""
          123  +  }else{
          124  +    h += "<li><a href='";
          125  +    h += listitems28[i].u;
          126  +    h += "'>";
          127  +    ea = "</a>"
          128  +  }
          129  +  if(listitems28[i].s==2 || listitems28[i].s==3) h += "<s>"
          130  +  h += listitems28[i].x;
          131  +  if(listitems28[i].s==2 || listitems28[i].s==3) h += "</s>"
          132  +  h += ea
          133  +  if(listitems28[i].s==1) h += "<small><i>(exp)</i></small>\n";
          134  +  if(listitems28[i].s==3) h += "&sup1\n";
          135  +  if(listitems28[i].s==4) h += "&sup2\n";
          136  +  if(listitems28[i].s==5) h += "&sup3\n";
          137  +}
          138  +document.getElementById("listtab28").innerHTML = h;
          139  +</script>
          140  +<hr class='xhr'>
          141  +<dl>
          142  +<a name="avg"></a>
          143  +<dt><p><b>avg(<i>X</i>)</b></dt><dd><p>
   158    144     The avg() function
   159    145     returns the average value of all non-NULL <i>X</i> within a
   160    146     group.  String and BLOB values that do not look like numbers are
   161    147     interpreted as 0.
   162    148     The result of avg() is always a floating point value as long as
   163    149     at there is at least one non-NULL input even if all
   164    150     inputs are integers.  The result of avg() is NULL if and only if
   165    151     there are no non-NULL inputs.  
   166         -</td></tr><tr><td valign="top" align="right" width="120"><a name="count"></a>
   167         -count(<i>X</i>)<br />count(*)</td><td valign="top">
          152  +</dd>
          153  +<a name="count"></a>
          154  +<dt><p><b>count(<i>X</i>)<br />count(*)</b></dt><dd><p>
   168    155     The count(X) function returns
   169    156     a count of the number of times
   170    157     that <i>X</i> is not NULL in a group.  The count(*) function
   171    158     (with no arguments) returns the total number of rows in the group.
   172         -</td></tr><tr><td valign="top" align="right" width="120"><a name="groupconcat"></a>
   173         -group_concat(<i>X</i>)<br />group_concat(<i>X</i>,<i>Y</i>)</td><td valign="top">
          159  +</dd>
          160  +<a name="groupconcat"></a>
          161  +<dt><p><b>group_concat(<i>X</i>)<br />group_concat(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   174    162     The group_concat() function returns
   175    163     a string which is the concatenation of
   176    164     all non-NULL values of <i>X</i>.  If parameter <i>Y</i> is present then
   177    165     it is used as the separator
   178    166     between instances of <i>X</i>.  A comma (",") is used as the separator
   179    167     if <i>Y</i> is omitted.  The order of the concatenated elements is
   180    168     arbitrary.
   181         -</td></tr><tr><td valign="top" align="right" width="120"><a name="maxggunc"></a>
   182         -max(<i>X</i>)</td><td valign="top">
          169  +</dd>
          170  +<a name="maxggunc"></a>
          171  +<dt><p><b>max(<i>X</i>)</b></dt><dd><p>
   183    172     The max() aggregate function
   184    173     returns the maximum value of all values in the group.
   185    174     The maximum value is the value that would be returned last in an
   186    175     ORDER BY on the same column.  Aggregate max() returns NULL 
   187    176     if and only if there are no non-NULL values in the group.
   188         -</td></tr><tr><td valign="top" align="right" width="120"><a name="minggunc"></a>
   189         -min(<i>X</i>)</td><td valign="top">
          177  +</dd>
          178  +<a name="minggunc"></a>
          179  +<dt><p><b>min(<i>X</i>)</b></dt><dd><p>
   190    180     The min() aggregate function
   191    181     returns the minimum non-NULL value of all values in the group.
   192    182     The minimum value is the first non-NULL value that would appear
   193    183     in an ORDER BY of the column.
   194    184     Aggregate min() returns NULL if and only if there are no non-NULL
   195    185     values in the group.
   196         -</td></tr><tr><td valign="top" align="right" width="120"><a name="sumunc"></a>
   197         -sum(<i>X</i>)<br />total(<i>X</i>)</td><td valign="top">
          186  +</dd>
          187  +<a name="sumunc"></a>
          188  +<dt><p><b>sum(<i>X</i>)<br />total(<i>X</i>)</b></dt><dd><p>
   198    189     The sum() and total() aggregate functions
   199    190     return sum of all non-NULL values in the group.
   200    191     If there are no non-NULL input rows then sum() returns
   201    192     NULL but total() returns 0.0.
   202    193     NULL is not normally a helpful result for the sum of no rows
   203    194     but the SQL standard requires it and most other
   204    195     SQL database engines implement sum() that way so SQLite does it in the
................................................................................
   212    203     then sum() returns a floating point value
   213    204     which might be an approximation to the true sum.</p>
   214    205   
   215    206     <p>Sum() will throw an "integer overflow" exception if all inputs
   216    207     are integers or NULL
   217    208     and an integer overflow occurs at any point during the computation.
   218    209     Total() never throws an integer overflow.
   219         -</td></tr>
   220         -</table>
   221         -
          210  +</dd>
          211  +</dl>
   222    212   

Changes to Doc/Extra/Core/lang_altertable.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: ALTER TABLE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ALTER TABLE</h2><p><b><a href="syntax/alter-table-stmt.html">alter-table-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ALTER TABLE</h2></div><p><b><a href="syntax/alter-table-stmt.html">alter-table-stmt:</a></b>
   139     77   <button id='x739' onclick='hideorshow("x739","x740")'>hide</button></p>
   140         - <blockquote id='x740'>
           78  + <div id='x740' class='imgcontainer'>
   141     79    <img alt="syntax diagram alter-table-stmt" src="images/syntax/alter-table-stmt.gif" />
   142     80   <p><b><a href="syntax/column-def.html">column-def:</a></b>
   143     81   <button id='x741' onclick='hideorshow("x741","x742")'>show</button></p>
   144         - <blockquote id='x742' style='display:none;'>
           82  + <div id='x742' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram column-def" src="images/syntax/column-def.gif" />
   146     84   <p><b><a href="syntax/column-constraint.html">column-constraint:</a></b>
   147     85   <button id='x743' onclick='hideorshow("x743","x744")'>show</button></p>
   148         - <blockquote id='x744' style='display:none;'>
           86  + <div id='x744' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram column-constraint" src="images/syntax/column-constraint.gif" />
   150     88   <p><b><a href="syntax/conflict-clause.html">conflict-clause:</a></b>
   151     89   <button id='x745' onclick='hideorshow("x745","x746")'>show</button></p>
   152         - <blockquote id='x746' style='display:none;'>
           90  + <div id='x746' style='display:none;' class='imgcontainer'>
   153     91    <img alt="syntax diagram conflict-clause" src="images/syntax/conflict-clause.gif" />
   154         -</blockquote>
           92  +</div>
   155     93   <p><b><a href="syntax/expr.html">expr:</a></b>
   156     94   <button id='x747' onclick='hideorshow("x747","x748")'>show</button></p>
   157         - <blockquote id='x748' style='display:none;'>
           95  + <div id='x748' style='display:none;' class='imgcontainer'>
   158     96    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   159     97   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   160     98   <button id='x749' onclick='hideorshow("x749","x750")'>show</button></p>
   161         - <blockquote id='x750' style='display:none;'>
           99  + <div id='x750' style='display:none;' class='imgcontainer'>
   162    100    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   163         -</blockquote>
          101  +</div>
   164    102   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   165    103   <button id='x751' onclick='hideorshow("x751","x752")'>show</button></p>
   166         - <blockquote id='x752' style='display:none;'>
          104  + <div id='x752' style='display:none;' class='imgcontainer'>
   167    105    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   168    106   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   169    107   <button id='x753' onclick='hideorshow("x753","x754")'>show</button></p>
   170         - <blockquote id='x754' style='display:none;'>
          108  + <div id='x754' style='display:none;' class='imgcontainer'>
   171    109    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   172         -</blockquote>
          110  +</div>
   173    111   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   174    112   <button id='x755' onclick='hideorshow("x755","x756")'>show</button></p>
   175         - <blockquote id='x756' style='display:none;'>
          113  + <div id='x756' style='display:none;' class='imgcontainer'>
   176    114    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   177         -</blockquote>
          115  +</div>
   178    116   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   179    117   <button id='x757' onclick='hideorshow("x757","x758")'>show</button></p>
   180         - <blockquote id='x758' style='display:none;'>
          118  + <div id='x758' style='display:none;' class='imgcontainer'>
   181    119    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   182    120   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   183    121   <button id='x759' onclick='hideorshow("x759","x760")'>show</button></p>
   184         - <blockquote id='x760' style='display:none;'>
          122  + <div id='x760' style='display:none;' class='imgcontainer'>
   185    123    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   186         -</blockquote>
          124  +</div>
   187    125   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   188    126   <button id='x761' onclick='hideorshow("x761","x762")'>show</button></p>
   189         - <blockquote id='x762' style='display:none;'>
          127  + <div id='x762' style='display:none;' class='imgcontainer'>
   190    128    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   191         -</blockquote>
   192         -</blockquote>
          129  +</div>
          130  +</div>
   193    131   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   194    132   <button id='x763' onclick='hideorshow("x763","x764")'>show</button></p>
   195         - <blockquote id='x764' style='display:none;'>
          133  + <div id='x764' style='display:none;' class='imgcontainer'>
   196    134    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   197         -</blockquote>
          135  +</div>
   198    136   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   199    137   <button id='x765' onclick='hideorshow("x765","x766")'>show</button></p>
   200         - <blockquote id='x766' style='display:none;'>
          138  + <div id='x766' style='display:none;' class='imgcontainer'>
   201    139    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   202         -</blockquote>
          140  +</div>
   203    141   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   204    142   <button id='x767' onclick='hideorshow("x767","x768")'>show</button></p>
   205         - <blockquote id='x768' style='display:none;'>
          143  + <div id='x768' style='display:none;' class='imgcontainer'>
   206    144    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   207         -</blockquote>
   208         -</blockquote>
   209         -</blockquote>
          145  +</div>
          146  +</div>
          147  +</div>
   210    148   <p><b><a href="syntax/foreign-key-clause.html">foreign-key-clause:</a></b>
   211    149   <button id='x769' onclick='hideorshow("x769","x770")'>show</button></p>
   212         - <blockquote id='x770' style='display:none;'>
          150  + <div id='x770' style='display:none;' class='imgcontainer'>
   213    151    <img alt="syntax diagram foreign-key-clause" src="images/syntax/foreign-key-clause.gif" />
   214         -</blockquote>
          152  +</div>
   215    153   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   216    154   <button id='x771' onclick='hideorshow("x771","x772")'>show</button></p>
   217         - <blockquote id='x772' style='display:none;'>
          155  + <div id='x772' style='display:none;' class='imgcontainer'>
   218    156    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   219         -</blockquote>
          157  +</div>
   220    158   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   221    159   <button id='x773' onclick='hideorshow("x773","x774")'>show</button></p>
   222         - <blockquote id='x774' style='display:none;'>
          160  + <div id='x774' style='display:none;' class='imgcontainer'>
   223    161    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   224         -</blockquote>
   225         -</blockquote>
          162  +</div>
          163  +</div>
   226    164   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   227    165   <button id='x775' onclick='hideorshow("x775","x776")'>show</button></p>
   228         - <blockquote id='x776' style='display:none;'>
          166  + <div id='x776' style='display:none;' class='imgcontainer'>
   229    167    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   230    168   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   231    169   <button id='x777' onclick='hideorshow("x777","x778")'>show</button></p>
   232         - <blockquote id='x778' style='display:none;'>
          170  + <div id='x778' style='display:none;' class='imgcontainer'>
   233    171    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   234         -</blockquote>
   235         -</blockquote>
   236         -</blockquote>
   237         -</blockquote>
          172  +</div>
          173  +</div>
          174  +</div>
          175  +</div>
   238    176   
   239    177   
   240    178   <p>SQLite supports a limited subset of ALTER TABLE.
   241    179   The ALTER TABLE command in SQLite allows the user to rename a table
   242    180   or to add a new column to an existing table.
   243    181   </p>
   244    182   

Changes to Doc/Extra/Core/lang_analyze.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: ANALYZE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ANALYZE</h2><p><b><a href="syntax/analyze-stmt.html">analyze-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ANALYZE</h2></div><p><b><a href="syntax/analyze-stmt.html">analyze-stmt:</a></b>
   139     77   <button id='x779' onclick='hideorshow("x779","x780")'>hide</button></p>
   140         - <blockquote id='x780'>
           78  + <div id='x780' class='imgcontainer'>
   141     79    <img alt="syntax diagram analyze-stmt" src="images/syntax/analyze-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p> The ANALYZE command gathers statistics about tables and
   146     84   indices and stores the collected information
   147     85   in <a href="fileformat2.html#intschema">internal tables</a> of the database where the query optimizer can
   148     86   access the information and use it to help make better query planning choices.
   149     87   If no arguments are given, all attached databases are

Changes to Doc/Extra/Core/lang_attach.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: ATTACH DATABASE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ATTACH DATABASE</h2><p><b><a href="syntax/attach-stmt.html">attach-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ATTACH DATABASE</h2></div><p><b><a href="syntax/attach-stmt.html">attach-stmt:</a></b>
   139     77   <button id='x781' onclick='hideorshow("x781","x782")'>hide</button></p>
   140         - <blockquote id='x782'>
           78  + <div id='x782' class='imgcontainer'>
   141     79    <img alt="syntax diagram attach-stmt" src="images/syntax/attach-stmt.gif" />
   142     80   <p><b><a href="syntax/expr.html">expr:</a></b>
   143     81   <button id='x783' onclick='hideorshow("x783","x784")'>show</button></p>
   144         - <blockquote id='x784' style='display:none;'>
           82  + <div id='x784' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   146     84   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   147     85   <button id='x785' onclick='hideorshow("x785","x786")'>show</button></p>
   148         - <blockquote id='x786' style='display:none;'>
           86  + <div id='x786' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   150         -</blockquote>
           88  +</div>
   151     89   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   152     90   <button id='x787' onclick='hideorshow("x787","x788")'>show</button></p>
   153         - <blockquote id='x788' style='display:none;'>
           91  + <div id='x788' style='display:none;' class='imgcontainer'>
   154     92    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   155         -</blockquote>
           93  +</div>
   156     94   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   157     95   <button id='x789' onclick='hideorshow("x789","x790")'>show</button></p>
   158         - <blockquote id='x790' style='display:none;'>
           96  + <div id='x790' style='display:none;' class='imgcontainer'>
   159     97    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   160     98   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   161     99   <button id='x791' onclick='hideorshow("x791","x792")'>show</button></p>
   162         - <blockquote id='x792' style='display:none;'>
          100  + <div id='x792' style='display:none;' class='imgcontainer'>
   163    101    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   164         -</blockquote>
          102  +</div>
   165    103   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   166    104   <button id='x793' onclick='hideorshow("x793","x794")'>show</button></p>
   167         - <blockquote id='x794' style='display:none;'>
          105  + <div id='x794' style='display:none;' class='imgcontainer'>
   168    106    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   169         -</blockquote>
          107  +</div>
   170    108   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   171    109   <button id='x795' onclick='hideorshow("x795","x796")'>show</button></p>
   172         - <blockquote id='x796' style='display:none;'>
          110  + <div id='x796' style='display:none;' class='imgcontainer'>
   173    111    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   174    112   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   175    113   <button id='x797' onclick='hideorshow("x797","x798")'>show</button></p>
   176         - <blockquote id='x798' style='display:none;'>
          114  + <div id='x798' style='display:none;' class='imgcontainer'>
   177    115    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   178         -</blockquote>
          116  +</div>
   179    117   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   180    118   <button id='x799' onclick='hideorshow("x799","x800")'>show</button></p>
   181         - <blockquote id='x800' style='display:none;'>
          119  + <div id='x800' style='display:none;' class='imgcontainer'>
   182    120    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   183         -</blockquote>
   184         -</blockquote>
          121  +</div>
          122  +</div>
   185    123   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   186    124   <button id='x801' onclick='hideorshow("x801","x802")'>show</button></p>
   187         - <blockquote id='x802' style='display:none;'>
          125  + <div id='x802' style='display:none;' class='imgcontainer'>
   188    126    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   189         -</blockquote>
          127  +</div>
   190    128   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   191    129   <button id='x803' onclick='hideorshow("x803","x804")'>show</button></p>
   192         - <blockquote id='x804' style='display:none;'>
          130  + <div id='x804' style='display:none;' class='imgcontainer'>
   193    131    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   194         -</blockquote>
          132  +</div>
   195    133   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   196    134   <button id='x805' onclick='hideorshow("x805","x806")'>show</button></p>
   197         - <blockquote id='x806' style='display:none;'>
          135  + <div id='x806' style='display:none;' class='imgcontainer'>
   198    136    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   199         -</blockquote>
   200         -</blockquote>
          137  +</div>
          138  +</div>
   201    139   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   202    140   <button id='x807' onclick='hideorshow("x807","x808")'>show</button></p>
   203         - <blockquote id='x808' style='display:none;'>
          141  + <div id='x808' style='display:none;' class='imgcontainer'>
   204    142    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   205    143   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   206    144   <button id='x809' onclick='hideorshow("x809","x810")'>show</button></p>
   207         - <blockquote id='x810' style='display:none;'>
          145  + <div id='x810' style='display:none;' class='imgcontainer'>
   208    146    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   209         -</blockquote>
   210         -</blockquote>
   211         -</blockquote>
   212         -</blockquote>
          147  +</div>
          148  +</div>
          149  +</div>
          150  +</div>
   213    151   
   214    152   
   215    153   <p> The ATTACH DATABASE statement adds another database 
   216    154   file to the current <a href="c3ref/sqlite3.html">database connection</a>. 
   217    155   Database files that were previously attached can be removed using
   218    156   the <a href="lang_detach.html">DETACH DATABASE</a> command.
   219    157   

Changes to Doc/Extra/Core/lang_comment.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: comment</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>comment</h2><p><b><a href="syntax/comment-syntax.html">comment-syntax:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>comment</h2></div><p><b><a href="syntax/comment-syntax.html">comment-syntax:</a></b>
   139     77   <button id='x823' onclick='hideorshow("x823","x824")'>hide</button></p>
   140         - <blockquote id='x824'>
           78  + <div id='x824' class='imgcontainer'>
   141     79    <img alt="syntax diagram comment-syntax" src="images/syntax/comment-syntax.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>Comments are not SQL commands, but can occur within the text of
   146     84   SQL queries passed to <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> and related interfaces.
   147     85   Comments are treated as whitespace by the parser.
   148     86   Comments can begin anywhere whitespace 
   149     87   can be found, including inside expressions that span multiple lines.

Changes to Doc/Extra/Core/lang_conflict.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: ON CONFLICT clause</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ON CONFLICT clause</h2><p><b><a href="syntax/conflict-clause.html">conflict-clause:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>ON CONFLICT clause</h2></div><p><b><a href="syntax/conflict-clause.html">conflict-clause:</a></b>
   139     77   <button id='x1135' onclick='hideorshow("x1135","x1136")'>hide</button></p>
   140         - <blockquote id='x1136'>
           78  + <div id='x1136' class='imgcontainer'>
   141     79    <img alt="syntax diagram conflict-clause" src="images/syntax/conflict-clause.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>The ON CONFLICT clause is not a separate SQL command.  It is a
   146     84   non-standard clause that can appear in many other SQL commands.
   147     85   It is given its own section in this document because it is not
   148     86   part of standard SQL and therefore might not be familiar.</p>
   149     87   

Changes to Doc/Extra/Core/lang_corefunc.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: Core Functions</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Core Functions</h2>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Core Functions</h2></div>
   139     77   
   140     78   <p>The core functions shown below are available by default. 
   141     79   <a href="lang_datefunc.html">Date &amp; Time functions</a>,
   142     80   <a href="lang_aggfunc.html">aggregate functions</a>, and
   143     81   <a href="json1.html">JSON functions</a> are documented separately.  An
   144     82   application may define additional
   145     83   functions written in C and added to the database engine using
   146     84   the <a href="c3ref/create_function.html">sqlite3_create_function()</a> API.</p>
   147     85   
   148         -<table border=0 cellpadding=10>
   149         -<tr><td valign="top" align="right" width="120"><a name="abs"></a>
   150         -abs(<i>X</i>)</td><td valign="top">
           86  +<style>
           87  +#listtab27 tr td {vertical-align:top;}
           88  +</style>
           89  +<table id='listtab27' width='100%'></table>
           90  +<script>
           91  +var listitems27 = [{"u":"lang_corefunc.html#abs","x":"abs(X)","s":0},
           92  +{"u":"lang_corefunc.html#changes","x":"changes()","s":0},
           93  +{"u":"lang_corefunc.html#char","x":"char(X1,X2,...,XN)","s":0},
           94  +{"u":"lang_corefunc.html#coalesce","x":"coalesce(X,Y,...)","s":0},
           95  +{"u":"lang_corefunc.html#glob","x":"glob(X,Y)","s":0},
           96  +{"u":"lang_corefunc.html#hex","x":"hex(X)","s":0},
           97  +{"u":"lang_corefunc.html#ifnull","x":"ifnull(X,Y)","s":0},
           98  +{"u":"lang_corefunc.html#instr","x":"instr(X,Y)","s":0},
           99  +{"u":"lang_corefunc.html#last_insert_rowid","x":"last_insert_rowid()","s":0},
          100  +{"u":"lang_corefunc.html#length","x":"length(X)","s":0},
          101  +{"u":"lang_corefunc.html#like","x":"like(X,Y)","s":0},
          102  +{"u":"lang_corefunc.html#like","x":"like(X,Y,Z)","s":0},
          103  +{"u":"lang_corefunc.html#likelihood","x":"likelihood(X,Y)","s":0},
          104  +{"u":"lang_corefunc.html#likely","x":"likely(X)","s":0},
          105  +{"u":"lang_corefunc.html#load_extension","x":"load_extension(X)","s":0},
          106  +{"u":"lang_corefunc.html#load_extension","x":"load_extension(X,Y)","s":0},
          107  +{"u":"lang_corefunc.html#lower","x":"lower(X)","s":0},
          108  +{"u":"lang_corefunc.html#ltrim","x":"ltrim(X)","s":0},
          109  +{"u":"lang_corefunc.html#ltrim","x":"ltrim(X,Y)","s":0},
          110  +{"u":"lang_corefunc.html#maxoreunc","x":"max(X,Y,...)","s":0},
          111  +{"u":"lang_corefunc.html#minoreunc","x":"min(X,Y,...)","s":0},
          112  +{"u":"lang_corefunc.html#nullif","x":"nullif(X,Y)","s":0},
          113  +{"u":"lang_corefunc.html#printf","x":"printf(FORMAT,...)","s":0},
          114  +{"u":"lang_corefunc.html#quote","x":"quote(X)","s":0},
          115  +{"u":"lang_corefunc.html#random","x":"random()","s":0},
          116  +{"u":"lang_corefunc.html#randomblob","x":"randomblob(N)","s":0},
          117  +{"u":"lang_corefunc.html#replace","x":"replace(X,Y,Z)","s":0},
          118  +{"u":"lang_corefunc.html#round","x":"round(X)","s":0},
          119  +{"u":"lang_corefunc.html#round","x":"round(X,Y)","s":0},
          120  +{"u":"lang_corefunc.html#rtrim","x":"rtrim(X)","s":0},
          121  +{"u":"lang_corefunc.html#rtrim","x":"rtrim(X,Y)","s":0},
          122  +{"u":"lang_corefunc.html#soundex","x":"soundex(X)","s":0},
          123  +{"u":"lang_corefunc.html#sqlite_compileoption_get","x":"sqlite_compileoption_get(N)","s":0},
          124  +{"u":"lang_corefunc.html#sqlite_compileoption_used","x":"sqlite_compileoption_used(X)","s":0},
          125  +{"u":"lang_corefunc.html#sqlite_source_id","x":"sqlite_source_id()","s":0},
          126  +{"u":"lang_corefunc.html#sqlite_version","x":"sqlite_version()","s":0},
          127  +{"u":"lang_corefunc.html#substr","x":"substr(X,Y)","s":0},
          128  +{"u":"lang_corefunc.html#substr","x":"substr(X,Y,Z)","s":0},
          129  +{"u":"lang_corefunc.html#total_changes","x":"total_changes()","s":0},
          130  +{"u":"lang_corefunc.html#trim","x":"trim(X)","s":0},
          131  +{"u":"lang_corefunc.html#trim","x":"trim(X,Y)","s":0},
          132  +{"u":"lang_corefunc.html#typeof","x":"typeof(X)","s":0},
          133  +{"u":"lang_corefunc.html#unicode","x":"unicode(X)","s":0},
          134  +{"u":"lang_corefunc.html#unlikely","x":"unlikely(X)","s":0},
          135  +{"u":"lang_corefunc.html#upper","x":"upper(X)","s":0},
          136  +{"u":"lang_corefunc.html#zeroblob","x":"zeroblob(N)","s":0}];
          137  +var j = 0;
          138  +var w = Math.max(document.documentElement.clientWidth,  window.innerWidth || 0);
          139  +var nCol = Math.floor(w/225);
          140  +if(nCol<=0) nCol=1;
          141  +var nRow = Math.ceil((listitems27.length+1)/nCol);
          142  +var h="<tr><td><ul class='multicol_list'>"
          143  +var ea
          144  +for(var i=0; i<listitems27.length; i++){
          145  +  if( (++j)>nRow ){
          146  +    h += "</ul></td>\n<td><ul class='multicol_list'>\n";
          147  +    j = 1;
          148  +  }
          149  +  if(listitems27[i].u=="" || listitems27[i].s==2){
          150  +    h += "<li>"
          151  +    ea = ""
          152  +  }else{
          153  +    h += "<li><a href='";
          154  +    h += listitems27[i].u;
          155  +    h += "'>";
          156  +    ea = "</a>"
          157  +  }
          158  +  if(listitems27[i].s==2 || listitems27[i].s==3) h += "<s>"
          159  +  h += listitems27[i].x;
          160  +  if(listitems27[i].s==2 || listitems27[i].s==3) h += "</s>"
          161  +  h += ea
          162  +  if(listitems27[i].s==1) h += "<small><i>(exp)</i></small>\n";
          163  +  if(listitems27[i].s==3) h += "&sup1\n";
          164  +  if(listitems27[i].s==4) h += "&sup2\n";
          165  +  if(listitems27[i].s==5) h += "&sup3\n";
          166  +}
          167  +document.getElementById("listtab27").innerHTML = h;
          168  +</script>
          169  +<hr class='xhr'>
          170  +<dl>
          171  +<a name="abs"></a>
          172  +<dt><p><b>abs(<i>X</i>)</b></dt><dd><p>
   151    173     The abs(X) function returns the absolute value of the numeric
   152    174     argument X.  Abs(X) returns NULL if X is NULL. 
   153    175     Abs(X) returns 0.0 if X is a string or blob
   154    176     that cannot be converted to a numeric value.  If X is the 
   155    177     integer -9223372036854775808 then abs(X) throws an integer overflow
   156    178     error since there is no equivalent positive 64-bit two complement value.
   157         -</td></tr><tr><td valign="top" align="right" width="120"><a name="changes"></a>
   158         -changes()</td><td valign="top">
          179  +</dd>
          180  +<a name="changes"></a>
          181  +<dt><p><b>changes()</b></dt><dd><p>
   159    182     The changes() function returns the number of database rows that were changed
   160    183     or inserted or deleted by the most recently completed INSERT, DELETE,
   161    184     or UPDATE statement, exclusive of statements in lower-level triggers.
   162    185     The changes() SQL function is a wrapper around the <a href="c3ref/changes.html">sqlite3_changes()</a>
   163    186     C/C++ function and hence follows the same rules for counting changes.
   164         -</td></tr><tr><td valign="top" align="right" width="120"><a name="char"></a>
   165         -char(<i>X1</i>,<i>X2</i>,...,<i>XN</i>)</td><td valign="top">
          187  +</dd>
          188  +<a name="char"></a>
          189  +<dt><p><b>char(<i>X1</i>,<i>X2</i>,...,<i>XN</i>)</b></dt><dd><p>
   166    190     The char(X1,X2,...,XN) function returns a string composed of characters having the
   167    191      unicode code point values of integers X1 through XN, respectively.
   168         -</td></tr><tr><td valign="top" align="right" width="120"><a name="coalesce"></a>
   169         -coalesce(<i>X</i>,<i>Y</i>,...)</td><td valign="top">
          192  +</dd>
          193  +<a name="coalesce"></a>
          194  +<dt><p><b>coalesce(<i>X</i>,<i>Y</i>,...)</b></dt><dd><p>
   170    195     The coalesce() function returns a copy of its first non-NULL argument, or
   171    196     NULL if all arguments are NULL.  Coalesce() must have at least 
   172    197     2 arguments.
   173         -</td></tr><tr><td valign="top" align="right" width="120"><a name="glob"></a>
   174         -glob(<i>X</i>,<i>Y</i>)</td><td valign="top">
          198  +</dd>
          199  +<a name="glob"></a>
          200  +<dt><p><b>glob(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   175    201     The glob(X,Y) function is equivalent to the
   176    202     expression "<b>Y GLOB X</b>".
   177    203     Note that the X and Y arguments are reversed in the glob() function
   178    204     relative to the infix <a href="lang_expr.html#glob">GLOB</a> operator.
   179    205     If the <a href="c3ref/create_function.html">sqlite3_create_function()</a> interface is used to
   180    206     override the glob(X,Y) function with an alternative implementation then
   181    207     the <a href="lang_expr.html#glob">GLOB</a> operator will invoke the alternative implementation.
   182         -</td></tr><tr><td valign="top" align="right" width="120"><a name="ifnull"></a>
   183         -ifnull(<i>X</i>,<i>Y</i>)</td><td valign="top">
          208  +</dd>
          209  +<a name="hex"></a>
          210  +<dt><p><b>hex(<i>X</i>)</b></dt><dd><p>
          211  +  The hex() function interprets its argument as a BLOB and returns
          212  +  a string which is the upper-case hexadecimal rendering of the content of
          213  +  that blob.
          214  +</dd>
          215  +<a name="ifnull"></a>
          216  +<dt><p><b>ifnull(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   184    217     The ifnull() function returns a copy of its first non-NULL argument, or
   185    218     NULL if both arguments are NULL.  Ifnull() must have exactly 2 arguments.
   186    219     The ifnull() function is equivalent to <a href="lang_corefunc.html#coalesce">coalesce()</a> with two arguments.
   187         -</td></tr><tr><td valign="top" align="right" width="120"><a name="instr"></a>
   188         -instr(<i>X</i>,<i>Y</i>)</td><td valign="top">
          220  +</dd>
          221  +<a name="instr"></a>
          222  +<dt><p><b>instr(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   189    223     The instr(X,Y) function finds the first occurrence of string Y within 
   190    224     string X and returns the number of prior characters plus 1, or 0 if
   191    225     Y is nowhere found within X.
   192    226     Or, if X and Y are both BLOBs, then instr(X,Y) returns one
   193    227     more than the number bytes prior to the first occurrence of Y, or 0 if
   194    228     Y does not occur anywhere within X.
   195    229     If both arguments X and Y to instr(X,Y) are non-NULL and are not BLOBs
   196    230     then both are interpreted as strings.
   197    231     If either X or Y are NULL in instr(X,Y) then the result is NULL.
   198         -</td></tr><tr><td valign="top" align="right" width="120"><a name="hex"></a>
   199         -hex(<i>X</i>)</td><td valign="top">
   200         -  The hex() function interprets its argument as a BLOB and returns
   201         -  a string which is the upper-case hexadecimal rendering of the content of
   202         -  that blob.
   203         -</td></tr><tr><td valign="top" align="right" width="120"><a name="last_insert_rowid"></a>
   204         -last_insert_rowid()</td><td valign="top">
          232  +</dd>
          233  +<a name="last_insert_rowid"></a>
          234  +<dt><p><b>last_insert_rowid()</b></dt><dd><p>
   205    235     The last_insert_rowid() function returns the <a href="lang_createtable.html#rowid">ROWID</a>
   206    236     of the last row insert from the database connection which invoked the
   207    237     function.
   208    238     The last_insert_rowid() SQL function is a wrapper around the
   209    239     <a href="c3ref/last_insert_rowid.html">sqlite3_last_insert_rowid()</a> C/C++ interface function.
   210         -</td></tr><tr><td valign="top" align="right" width="120"><a name="length"></a>
   211         -length(<i>X</i>)</td><td valign="top">
          240  +</dd>
          241  +<a name="length"></a>
          242  +<dt><p><b>length(<i>X</i>)</b></dt><dd><p>
   212    243     For a string value X, the length(X) function returns the number of 
   213    244     characters (not bytes) in X prior to the first NUL character.
   214    245     Since SQLite strings do not normally contain NUL characters, the length(X)
   215    246     function will usually return the total number of characters in the string X.
   216    247     For a blob value X, length(X) returns the number of bytes in the blob.
   217    248     If X is NULL then length(X) is NULL.
   218    249     If X is numeric then length(X) returns the length of a string
   219    250     representation of X.
   220         -</td></tr><tr><td valign="top" align="right" width="120"><a name="like"></a>
   221         -like(<i>X</i>,<i>Y</i>)<br />like(<i>X</i>,<i>Y</i>,<i>Z</i>)</td><td valign="top">
          251  +</dd>
          252  +<a name="like"></a>
          253  +<dt><p><b>like(<i>X</i>,<i>Y</i>)<br />like(<i>X</i>,<i>Y</i>,<i>Z</i>)</b></dt><dd><p>
   222    254     The like() function is used to implement the
   223    255     "<b>Y LIKE X &#91;ESCAPE Z&#93;</b>" expression. 
   224    256     If the optional ESCAPE clause is present, then the
   225    257     like() function is invoked with three arguments.  Otherwise, it is
   226    258     invoked with two arguments only. Note that the X and Y parameters are
   227    259     reversed in the like() function relative to the infix <a href="lang_expr.html#like">LIKE</a> operator.
   228    260     The <a href="c3ref/create_function.html">sqlite3_create_function()</a> interface can be used to override the
   229    261     like() function and thereby change the operation of the
   230    262     <a href="lang_expr.html#like">LIKE</a> operator.  When overriding the like() function, it may be important
   231    263     to override both the two and three argument versions of the like() 
   232    264     function. Otherwise, different code may be called to implement the
   233    265     <a href="lang_expr.html#like">LIKE</a> operator depending on whether or not an ESCAPE clause was 
   234    266     specified.
   235         -</td></tr><tr><td valign="top" align="right" width="120"><a name="likelihood"></a>
   236         -likelihood(<i>X</i>,<i>Y</i>)</td><td valign="top">
          267  +</dd>
          268  +<a name="likelihood"></a>
          269  +<dt><p><b>likelihood(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   237    270     The likelihood(X,Y) function returns argument X unchanged.
   238    271     The value Y in likelihood(X,Y) must be a floating point constant
   239    272     between 0.0 and 1.0, inclusive.
   240    273     The likelihood(X) function is a no-op that the code generator
   241    274     optimizes away so that it consumes no CPU cycles during run-time
   242    275     (that is, during calls to <a href="c3ref/step.html">sqlite3_step()</a>).
   243    276     The purpose of the likelihood(X,Y) function is to provide a hint
   244    277     to the query planner that the argument X is a boolean that is
   245    278     true with a probability of approximately Y.
   246    279     The <a href="lang_corefunc.html#unlikely">unlikely(X)</a> function is short-hand for likelihood(X,0.0625).
   247    280     The <a href="lang_corefunc.html#likely">likely(X)</a> function is short-hand for likelihood(X,0.9375).
   248         -</td></tr><tr><td valign="top" align="right" width="120"><a name="likely"></a>
   249         -likely(<i>X</i>)</td><td valign="top">
          281  +</dd>
          282  +<a name="likely"></a>
          283  +<dt><p><b>likely(<i>X</i>)</b></dt><dd><p>
   250    284     The likely(X) function returns the argument X unchanged.
   251    285     The likely(X) function is a no-op that the code generator
   252    286     optimizes away so that it consumes no CPU cycles at
   253    287     run-time (that is, during calls to <a href="c3ref/step.html">sqlite3_step()</a>).
   254    288     The purpose of the likely(X) function is to provide a hint
   255    289     to the query planner that the argument X is a boolean value
   256    290     that is usually true. The likely(X) function is equivalent
   257    291     to <a href="lang_corefunc.html#likelihood">likelihood</a>(X,0.9375). See also: <a href="lang_corefunc.html#unlikely">unlikely(X)</a>.
   258         -</td></tr><tr><td valign="top" align="right" width="120"><a name="load_extension"></a>
   259         -load_extension(<i>X</i>)<br />load_extension(<i>X</i>,<i>Y</i>)</td><td valign="top">
          292  +</dd>
          293  +<a name="load_extension"></a>
          294  +<dt><p><b>load_extension(<i>X</i>)<br />load_extension(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   260    295     The load_extension(X,Y) function loads <a href="loadext.html">SQLite extensions</a> out of the shared
   261    296     library file named X using the entry point Y.  The result of load_extension()
   262    297     is always a NULL.  If Y is omitted then the default entry point name is used.
   263    298     The load_extension() function raises an exception if the extension fails to
   264    299     load or initialize correctly.
   265    300   
   266    301     <p>The load_extension() function will fail if the extension attempts to 
................................................................................
   270    305     those functions and/or collating sequences might be used elsewhere
   271    306     in the currently running SQL statement.  To load an extension that
   272    307     changes or deletes functions or collating sequences, use the
   273    308     <a href="c3ref/load_extension.html">sqlite3_load_extension()</a> C-language API.</p>
   274    309   
   275    310     <p>For security reasons, extension loaded is turned off by default and must
   276    311     be enabled by a prior call to <a href="c3ref/enable_load_extension.html">sqlite3_enable_load_extension()</a>.</p>
   277         -</td></tr><tr><td valign="top" align="right" width="120"><a name="lower"></a>
   278         -lower(<i>X</i>)</td><td valign="top">
          312  +</dd>
          313  +<a name="lower"></a>
          314  +<dt><p><b>lower(<i>X</i>)</b></dt><dd><p>
   279    315     The lower(X) function returns a copy of string X with all ASCII characters
   280    316     converted to lower case.  The default built-in lower() function works
   281    317     for ASCII characters only.  To do case conversions on non-ASCII
   282    318     characters, load the ICU extension.
   283         -</td></tr><tr><td valign="top" align="right" width="120"><a name="ltrim"></a>
   284         -ltrim(<i>X</i>)<br />ltrim(<i>X</i>,<i>Y</i>)</td><td valign="top">
          319  +</dd>
          320  +<a name="ltrim"></a>
          321  +<dt><p><b>ltrim(<i>X</i>)<br />ltrim(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   285    322     The ltrim(X,Y) function returns a string formed by removing any and all
   286    323     characters that appear in Y from the left side of X.
   287    324     If the Y argument is omitted, ltrim(X) removes spaces from the left side
   288    325     of X.
   289         -</td></tr><tr><td valign="top" align="right" width="120"><a name="maxoreunc"></a>
   290         -max(<i>X</i>,<i>Y</i>,...)</td><td valign="top">
          326  +</dd>
          327  +<a name="maxoreunc"></a>
          328  +<dt><p><b>max(<i>X</i>,<i>Y</i>,...)</b></dt><dd><p>
   291    329     The multi-argument max() function returns the argument with the 
   292    330     maximum value, or return NULL if any argument is NULL. 
   293    331     The multi-argument max() function searches its arguments from left to right
   294    332     for an argument that defines a collating function and uses that collating
   295    333     function for all string comparisons.  If none of the arguments to max()
   296    334     define a collating function, then the BINARY collating function is used.
   297    335     Note that <b>max()</b> is a simple function when
   298    336     it has 2 or more arguments but operates as an
   299    337     <a href="lang_aggfunc.html#maxggunc">aggregate function</a> if given only a single argument.
   300         -</td></tr><tr><td valign="top" align="right" width="120"><a name="minoreunc"></a>
   301         -min(<i>X</i>,<i>Y</i>,...)</td><td valign="top">
          338  +</dd>
          339  +<a name="minoreunc"></a>
          340  +<dt><p><b>min(<i>X</i>,<i>Y</i>,...)</b></dt><dd><p>
   302    341     The multi-argument min() function returns the argument with the
   303    342     minimum value.
   304    343     The multi-argument min() function searches its arguments from left to right
   305    344     for an argument that defines a collating function and uses that collating
   306    345     function for all string comparisons.  If none of the arguments to min()
   307    346     define a collating function, then the BINARY collating function is used.
   308    347     Note that <b>min()</b> is a simple function when
   309    348     it has 2 or more arguments but operates as an 
   310    349     <a href="lang_aggfunc.html#minggunc">aggregate function</a> if given
   311    350     only a single argument.
   312         -</td></tr><tr><td valign="top" align="right" width="120"><a name="nullif"></a>
   313         -nullif(<i>X</i>,<i>Y</i>)</td><td valign="top">
          351  +</dd>
          352  +<a name="nullif"></a>
          353  +<dt><p><b>nullif(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   314    354     The nullif(X,Y) function returns its first argument if the arguments are
   315    355     different and NULL if the arguments are the same.  The nullif(X,Y) function
   316    356     searches its arguments from left to right for an argument that defines a
   317    357     collating function and uses that collating function for all string
   318    358     comparisons.  If neither argument to nullif() defines a collating function
   319    359     then the BINARY is used.
   320         -</td></tr><tr><td valign="top" align="right" width="120"><a name="printf"></a>
   321         -printf(<i>FORMAT</i>,...)</td><td valign="top">
          360  +</dd>
          361  +<a name="printf"></a>
          362  +<dt><p><b>printf(<i>FORMAT</i>,...)</b></dt><dd><p>
   322    363     The printf(FORMAT,...) SQL function works like the <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> C-language
   323    364     function and the printf() function from the standard C library.
   324    365     The first argument is a format string that specifies how to construct the output
   325    366     string using values taken from subsequent arguments.  If the FORMAT argument is
   326    367     missing or NULL then the result is NULL.  The %n format is silently ignored and
   327    368     does not consume an argument.  The %p format is an alias for %X.  The %z format
   328    369     is interchangeable with %s.  If there are too few arguments in the argument list,
   329    370     missing arguments are assumed to have a NULL value, which is translated into
   330    371     0 or 0.0 for numeric formats or an empty string for %s.
   331         -</td></tr><tr><td valign="top" align="right" width="120"><a name="quote"></a>
   332         -quote(<i>X</i>)</td><td valign="top">
          372  +</dd>
          373  +<a name="quote"></a>
          374  +<dt><p><b>quote(<i>X</i>)</b></dt><dd><p>
   333    375     The quote(X) function returns the text of an SQL literal which
   334    376     is the value of its argument suitable for inclusion into an SQL statement.
   335    377     Strings are surrounded by single-quotes with escapes on interior quotes
   336    378     as needed.  BLOBs are encoded as hexadecimal literals.
   337    379     Strings with embedded NUL characters cannot be represented as string
   338    380     literals in SQL and hence the returned string literal is truncated prior
   339    381     to the first NUL.
   340         -</td></tr><tr><td valign="top" align="right" width="120"><a name="random"></a>
   341         -random()</td><td valign="top">
          382  +</dd>
          383  +<a name="random"></a>
          384  +<dt><p><b>random()</b></dt><dd><p>
   342    385     The random() function returns a pseudo-random integer
   343    386     between -9223372036854775808 and +9223372036854775807.
   344         -</td></tr><tr><td valign="top" align="right" width="120"><a name="randomblob"></a>
   345         -randomblob(<i>N</i>)</td><td valign="top">
          387  +</dd>
          388  +<a name="randomblob"></a>
          389  +<dt><p><b>randomblob(<i>N</i>)</b></dt><dd><p>
   346    390     The randomblob(N) function return an N-byte blob containing pseudo-random
   347    391     bytes. If N is less than 1 then a 1-byte random blob is returned.
   348    392   
   349    393     <p>Hint:  applications can generate globally unique identifiers
   350    394     using this function together with <a href="lang_corefunc.html#hex">hex()</a> and/or
   351    395     <a href="lang_corefunc.html#lower">lower()</a> like this:</p>
   352    396   
   353    397     <blockquote>
   354    398     hex(randomblob(16))<br></br>
   355    399     lower(hex(randomblob(16)))
   356    400     </blockquote>
   357         -</td></tr><tr><td valign="top" align="right" width="120"><a name="replace"></a>
   358         -replace(<i>X</i>,<i>Y</i>,<i>Z</i>)</td><td valign="top">
          401  +</dd>
          402  +<a name="replace"></a>
          403  +<dt><p><b>replace(<i>X</i>,<i>Y</i>,<i>Z</i>)</b></dt><dd><p>
   359    404     The replace(X,Y,Z) function returns a string formed by substituting
   360    405     string Z for every occurrence of string Y in string X.  The <a href="datatype3.html#collation">BINARY</a>
   361    406     collating sequence is used for comparisons.  If Y is an empty
   362    407     string then return X unchanged.  If Z is not initially
   363    408     a string, it is cast to a UTF-8 string prior to processing.
   364         -</td></tr><tr><td valign="top" align="right" width="120"><a name="round"></a>
   365         -round(<i>X</i>)<br />round(<i>X</i>,<i>Y</i>)</td><td valign="top">
          409  +</dd>
          410  +<a name="round"></a>
          411  +<dt><p><b>round(<i>X</i>)<br />round(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   366    412     The round(X,Y) function returns a floating-point
   367    413     value X rounded to Y digits to the right of the decimal point.
   368    414     If the Y argument is omitted, it is assumed to be 0.
   369         -</td></tr><tr><td valign="top" align="right" width="120"><a name="rtrim"></a>
   370         -rtrim(<i>X</i>)<br />rtrim(<i>X</i>,<i>Y</i>)</td><td valign="top">
          415  +</dd>
          416  +<a name="rtrim"></a>
          417  +<dt><p><b>rtrim(<i>X</i>)<br />rtrim(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   371    418     The rtrim(X,Y) function returns a string formed by removing any and all
   372    419     characters that appear in Y from the right side of X.
   373    420     If the Y argument is omitted, rtrim(X) removes spaces from the right
   374    421     side of X.
   375         -</td></tr><tr><td valign="top" align="right" width="120"><a name="soundex"></a>
   376         -soundex(<i>X</i>)</td><td valign="top">
          422  +</dd>
          423  +<a name="soundex"></a>
          424  +<dt><p><b>soundex(<i>X</i>)</b></dt><dd><p>
   377    425     The soundex(X) function returns a string that is the soundex encoding 
   378    426     of the string X.
   379    427     The string "?000" is returned if the argument is NULL or contains
   380    428     no ASCII alphabetic characters.
   381    429     This function is omitted from SQLite by default.
   382    430     It is only available if the <a href="compile.html#soundex">SQLITE_SOUNDEX</a> compile-time option
   383    431     is used when SQLite is built.
   384         -</td></tr><tr><td valign="top" align="right" width="120"><a name="sqlite_compileoption_get"></a>
   385         -sqlite_compileoption_get(<i>N</i>)</td><td valign="top">
          432  +</dd>
          433  +<a name="sqlite_compileoption_get"></a>
          434  +<dt><p><b>sqlite_compileoption_get(<i>N</i>)</b></dt><dd><p>
   386    435     The sqlite_compileoption_get() SQL function is a wrapper around the
   387    436     <a href="c3ref/compileoption_get.html">sqlite3_compileoption_get()</a> C/C++ function.
   388    437     This routine returns the N-th compile-time option used to build SQLite
   389    438     or NULL if N is out of range.  See also the <a href="pragma.html#pragma_compile_options">compile_options pragma</a>.
   390         -</td></tr><tr><td valign="top" align="right" width="120"><a name="sqlite_compileoption_used"></a>
   391         -sqlite_compileoption_used(<i>X</i>)</td><td valign="top">
          439  +</dd>
          440  +<a name="sqlite_compileoption_used"></a>
          441  +<dt><p><b>sqlite_compileoption_used(<i>X</i>)</b></dt><dd><p>
   392    442     The sqlite_compileoption_used() SQL function is a wrapper around the
   393    443     <a href="c3ref/compileoption_get.html">sqlite3_compileoption_used()</a> C/C++ function.
   394    444     When the argument X to sqlite_compileoption_used(X) is a string which
   395    445     is the name of a compile-time option, this routine returns true (1) or
   396    446     false (0) depending on whether or not that option was used during the
   397    447     build.
   398         -</td></tr><tr><td valign="top" align="right" width="120"><a name="sqlite_source_id"></a>
   399         -sqlite_source_id()</td><td valign="top">
          448  +</dd>
          449  +<a name="sqlite_source_id"></a>
          450  +<dt><p><b>sqlite_source_id()</b></dt><dd><p>
   400    451     The sqlite_source_id() function returns a string that identifies the
   401    452     specific version of the source code that was used to build the SQLite
   402    453     library.  The string returned by sqlite_source_id() is
   403    454     the date and time that the source code was checked in followed by
   404    455     the SHA1 hash for that check-in.  This function is
   405    456     an SQL wrapper around the <a href="c3ref/libversion.html">sqlite3_sourceid()</a> C interface.
   406         -</td></tr><tr><td valign="top" align="right" width="120"><a name="sqlite_version"></a>
   407         -sqlite_version()</td><td valign="top">
          457  +</dd>
          458  +<a name="sqlite_version"></a>
          459  +<dt><p><b>sqlite_version()</b></dt><dd><p>
   408    460     The sqlite_version() function returns the version string for the SQLite
   409    461     library that is running.  This function is an SQL
   410    462     wrapper around the <a href="c3ref/libversion.html">sqlite3_libversion()</a> C-interface.
   411         -</td></tr><tr><td valign="top" align="right" width="120"><a name="substr"></a>
   412         -substr(<i>X</i>,<i>Y</i>,<i>Z</i>)<br />substr(<i>X</i>,<i>Y</i>)</td><td valign="top">
          463  +</dd>
          464  +<a name="substr"></a>
          465  +<dt><p><b>substr(<i>X</i>,<i>Y</i>,<i>Z</i>)<br />substr(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   413    466     The substr(X,Y,Z) function returns a substring of input string X that begins
   414    467     with the Y-th character and which is Z characters long.
   415    468     If Z is omitted then substr(X,Y) returns all characters through the end
   416    469     of the string X beginning with the Y-th.
   417    470     The left-most character of X is number 1.  If Y is negative
   418    471     then the first character of the substring is found by counting from the
   419    472     right rather than the left.  If Z is negative then
   420    473     the abs(Z) characters preceding the Y-th character are returned.
   421    474     If X is a string then characters indices refer to actual UTF-8 
   422    475     characters.  If X is a BLOB then the indices refer to bytes.
   423         -</td></tr><tr><td valign="top" align="right" width="120"><a name="total_changes"></a>
   424         -total_changes()</td><td valign="top">
          476  +</dd>
          477  +<a name="total_changes"></a>
          478  +<dt><p><b>total_changes()</b></dt><dd><p>
   425    479     The total_changes() function returns the number of row changes
   426    480     caused by INSERT, UPDATE or DELETE
   427    481     statements since the current database connection was opened.
   428    482     This function is a wrapper around the <a href="c3ref/total_changes.html">sqlite3_total_changes()</a>
   429    483     C/C++ interface.
   430         -</td></tr><tr><td valign="top" align="right" width="120"><a name="trim"></a>
   431         -trim(<i>X</i>)<br />trim(<i>X</i>,<i>Y</i>)</td><td valign="top">
          484  +</dd>
          485  +<a name="trim"></a>
          486  +<dt><p><b>trim(<i>X</i>)<br />trim(<i>X</i>,<i>Y</i>)</b></dt><dd><p>
   432    487     The trim(X,Y) function returns a string formed by removing any and all
   433    488     characters that appear in Y from both ends of X.
   434    489     If the Y argument is omitted, trim(X) removes spaces from both ends of X.
   435         -</td></tr><tr><td valign="top" align="right" width="120"><a name="typeof"></a>
   436         -typeof(<i>X</i>)</td><td valign="top">
          490  +</dd>
          491  +<a name="typeof"></a>
          492  +<dt><p><b>typeof(<i>X</i>)</b></dt><dd><p>
   437    493     The typeof(X) function returns a string that indicates the <a href="datatype3.html">datatype</a> of
   438    494     the expression X: "null", "integer", "real", "text", or "blob".
   439         -</td></tr><tr><td valign="top" align="right" width="120"><a name="unlikely"></a>
   440         -unlikely(<i>X</i>)</td><td valign="top">
          495  +</dd>
          496  +<a name="unicode"></a>
          497  +<dt><p><b>unicode(<i>X</i>)</b></dt><dd><p>
          498  +  The unicode(X) function returns the numeric unicode code point corresponding to
          499  +  the first character of the string X.  If the argument to unicode(X) is not a string
          500  +  then the result is undefined.
          501  +</dd>
          502  +<a name="unlikely"></a>
          503  +<dt><p><b>unlikely(<i>X</i>)</b></dt><dd><p>
   441    504     The unlikely(X) function returns the argument X unchanged.
   442    505     The unlikely(X) function is a no-op that the code generator
   443    506     optimizes away so that it consumes no CPU cycles at
   444    507     run-time (that is, during calls to <a href="c3ref/step.html">sqlite3_step()</a>).
   445    508     The purpose of the unlikely(X) function is to provide a hint
   446    509     to the query planner that the argument X is a boolean value
   447    510     that is usually not true. The unlikely(X) function is equivalent
   448    511     to <a href="lang_corefunc.html#likelihood">likelihood</a>(X, 0.0625).
   449         -</td></tr><tr><td valign="top" align="right" width="120"><a name="unicode"></a>
   450         -unicode(<i>X</i>)</td><td valign="top">
   451         -  The unicode(X) function returns the numeric unicode code point corresponding to
   452         -  the first character of the string X.  If the argument to unicode(X) is not a string
   453         -  then the result is undefined.
   454         -</td></tr><tr><td valign="top" align="right" width="120"><a name="upper"></a>
   455         -upper(<i>X</i>)</td><td valign="top">
          512  +</dd>
          513  +<a name="upper"></a>
          514  +<dt><p><b>upper(<i>X</i>)</b></dt><dd><p>
   456    515     The upper(X) function returns a copy of input string X in which all 
   457    516     lower-case ASCII characters are converted to their upper-case equivalent.
   458         -</td></tr><tr><td valign="top" align="right" width="120"><a name="zeroblob"></a>
   459         -zeroblob(<i>N</i>)</td><td valign="top">
          517  +</dd>
          518  +<a name="zeroblob"></a>
          519  +<dt><p><b>zeroblob(<i>N</i>)</b></dt><dd><p>
   460    520     The zeroblob(N) function returns a BLOB consisting of N bytes of 0x00.
   461    521     SQLite manages these zeroblobs very efficiently.  Zeroblobs can be used to
   462    522     reserve space for a BLOB that is later written using 
   463    523     <a href="c3ref/blob_open.html">incremental BLOB I/O</a>.
   464    524     This SQL function is implemented using the <a href="c3ref/result_blob.html">sqlite3_result_zeroblob()</a>
   465    525     routine from the C/C++ interface.
   466         -</td></tr>
   467         -</table>
   468         -
          526  +</dd>
          527  +</dl>
   469    528   

Changes to Doc/Extra/Core/lang_createindex.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: CREATE INDEX</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE INDEX</h2><p><b><a href="syntax/create-index-stmt.html">create-index-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE INDEX</h2></div><p><b><a href="syntax/create-index-stmt.html">create-index-stmt:</a></b>
   139     77   <button id='x825' onclick='hideorshow("x825","x826")'>hide</button></p>
   140         - <blockquote id='x826'>
           78  + <div id='x826' class='imgcontainer'>
   141     79    <img alt="syntax diagram create-index-stmt" src="images/syntax/create-index-stmt.gif" />
   142     80   <p><b><a href="syntax/expr.html">expr:</a></b>
   143     81   <button id='x827' onclick='hideorshow("x827","x828")'>show</button></p>
   144         - <blockquote id='x828' style='display:none;'>
           82  + <div id='x828' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   146     84   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   147     85   <button id='x829' onclick='hideorshow("x829","x830")'>show</button></p>
   148         - <blockquote id='x830' style='display:none;'>
           86  + <div id='x830' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   150         -</blockquote>
           88  +</div>
   151     89   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   152     90   <button id='x831' onclick='hideorshow("x831","x832")'>show</button></p>
   153         - <blockquote id='x832' style='display:none;'>
           91  + <div id='x832' style='display:none;' class='imgcontainer'>
   154     92    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   155         -</blockquote>
           93  +</div>
   156     94   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   157     95   <button id='x833' onclick='hideorshow("x833","x834")'>show</button></p>
   158         - <blockquote id='x834' style='display:none;'>
           96  + <div id='x834' style='display:none;' class='imgcontainer'>
   159     97    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   160     98   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   161     99   <button id='x835' onclick='hideorshow("x835","x836")'>show</button></p>
   162         - <blockquote id='x836' style='display:none;'>
          100  + <div id='x836' style='display:none;' class='imgcontainer'>
   163    101    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   164         -</blockquote>
          102  +</div>
   165    103   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   166    104   <button id='x837' onclick='hideorshow("x837","x838")'>show</button></p>
   167         - <blockquote id='x838' style='display:none;'>
          105  + <div id='x838' style='display:none;' class='imgcontainer'>
   168    106    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   169         -</blockquote>
          107  +</div>
   170    108   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   171    109   <button id='x839' onclick='hideorshow("x839","x840")'>show</button></p>
   172         - <blockquote id='x840' style='display:none;'>
          110  + <div id='x840' style='display:none;' class='imgcontainer'>
   173    111    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   174    112   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   175    113   <button id='x841' onclick='hideorshow("x841","x842")'>show</button></p>
   176         - <blockquote id='x842' style='display:none;'>
          114  + <div id='x842' style='display:none;' class='imgcontainer'>
   177    115    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   178         -</blockquote>
          116  +</div>
   179    117   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   180    118   <button id='x843' onclick='hideorshow("x843","x844")'>show</button></p>
   181         - <blockquote id='x844' style='display:none;'>
          119  + <div id='x844' style='display:none;' class='imgcontainer'>
   182    120    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   183         -</blockquote>
   184         -</blockquote>
          121  +</div>
          122  +</div>
   185    123   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   186    124   <button id='x845' onclick='hideorshow("x845","x846")'>show</button></p>
   187         - <blockquote id='x846' style='display:none;'>
          125  + <div id='x846' style='display:none;' class='imgcontainer'>
   188    126    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   189         -</blockquote>
          127  +</div>
   190    128   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   191    129   <button id='x847' onclick='hideorshow("x847","x848")'>show</button></p>
   192         - <blockquote id='x848' style='display:none;'>
          130  + <div id='x848' style='display:none;' class='imgcontainer'>
   193    131    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   194         -</blockquote>
          132  +</div>
   195    133   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   196    134   <button id='x849' onclick='hideorshow("x849","x850")'>show</button></p>
   197         - <blockquote id='x850' style='display:none;'>
          135  + <div id='x850' style='display:none;' class='imgcontainer'>
   198    136    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   199         -</blockquote>
   200         -</blockquote>
          137  +</div>
          138  +</div>
   201    139   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   202    140   <button id='x851' onclick='hideorshow("x851","x852")'>show</button></p>
   203         - <blockquote id='x852' style='display:none;'>
          141  + <div id='x852' style='display:none;' class='imgcontainer'>
   204    142    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   205    143   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   206    144   <button id='x853' onclick='hideorshow("x853","x854")'>show</button></p>
   207         - <blockquote id='x854' style='display:none;'>
          145  + <div id='x854' style='display:none;' class='imgcontainer'>
   208    146    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   209         -</blockquote>
   210         -</blockquote>
   211         -</blockquote>
          147  +</div>
          148  +</div>
          149  +</div>
   212    150   <p><b><a href="syntax/indexed-column.html">indexed-column:</a></b>
   213    151   <button id='x855' onclick='hideorshow("x855","x856")'>show</button></p>
   214         - <blockquote id='x856' style='display:none;'>
          152  + <div id='x856' style='display:none;' class='imgcontainer'>
   215    153    <img alt="syntax diagram indexed-column" src="images/syntax/indexed-column.gif" />
   216         -</blockquote>
   217         -</blockquote>
          154  +</div>
          155  +</div>
   218    156   
   219    157   
   220    158   <p>The CREATE INDEX command consists of the keywords "CREATE INDEX" followed
   221    159   by the name of the new index, the keyword "ON", the name of a previously
   222    160   created table that is to be indexed, and a parenthesized list of table column
   223    161   names and/or expressions that are used for the index key.
   224    162   If the optional WHERE clause is included, then the index is a "<a href="partialindex.html">partial index</a>".

Changes to Doc/Extra/Core/lang_createtable.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: CREATE TABLE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE TABLE</h2><p><b><a href="syntax/create-table-stmt.html">create-table-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE TABLE</h2></div><p><b><a href="syntax/create-table-stmt.html">create-table-stmt:</a></b>
   139     77   <button id='x857' onclick='hideorshow("x857","x858")'>hide</button></p>
   140         - <blockquote id='x858'>
           78  + <div id='x858' class='imgcontainer'>
   141     79    <img alt="syntax diagram create-table-stmt" src="images/syntax/create-table-stmt.gif" />
   142     80   <p><b><a href="syntax/column-def.html">column-def:</a></b>
   143     81   <button id='x859' onclick='hideorshow("x859","x860")'>show</button></p>
   144         - <blockquote id='x860' style='display:none;'>
           82  + <div id='x860' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram column-def" src="images/syntax/column-def.gif" />
   146     84   <p><b><a href="syntax/column-constraint.html">column-constraint:</a></b>
   147     85   <button id='x861' onclick='hideorshow("x861","x862")'>show</button></p>
   148         - <blockquote id='x862' style='display:none;'>
           86  + <div id='x862' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram column-constraint" src="images/syntax/column-constraint.gif" />
   150     88   <p><b><a href="syntax/conflict-clause.html">conflict-clause:</a></b>
   151     89   <button id='x863' onclick='hideorshow("x863","x864")'>show</button></p>
   152         - <blockquote id='x864' style='display:none;'>
           90  + <div id='x864' style='display:none;' class='imgcontainer'>
   153     91    <img alt="syntax diagram conflict-clause" src="images/syntax/conflict-clause.gif" />
   154         -</blockquote>
           92  +</div>
   155     93   <p><b><a href="syntax/expr.html">expr:</a></b>
   156     94   <button id='x865' onclick='hideorshow("x865","x866")'>show</button></p>
   157         - <blockquote id='x866' style='display:none;'>
           95  + <div id='x866' style='display:none;' class='imgcontainer'>
   158     96    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   159     97   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   160     98   <button id='x867' onclick='hideorshow("x867","x868")'>show</button></p>
   161         - <blockquote id='x868' style='display:none;'>
           99  + <div id='x868' style='display:none;' class='imgcontainer'>
   162    100    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   163         -</blockquote>
   164         -</blockquote>
          101  +</div>
          102  +</div>
   165    103   <p><b><a href="syntax/foreign-key-clause.html">foreign-key-clause:</a></b>
   166    104   <button id='x869' onclick='hideorshow("x869","x870")'>show</button></p>
   167         - <blockquote id='x870' style='display:none;'>
          105  + <div id='x870' style='display:none;' class='imgcontainer'>
   168    106    <img alt="syntax diagram foreign-key-clause" src="images/syntax/foreign-key-clause.gif" />
   169         -</blockquote>
          107  +</div>
   170    108   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   171    109   <button id='x871' onclick='hideorshow("x871","x872")'>show</button></p>
   172         - <blockquote id='x872' style='display:none;'>
          110  + <div id='x872' style='display:none;' class='imgcontainer'>
   173    111    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   174         -</blockquote>
          112  +</div>
   175    113   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   176    114   <button id='x873' onclick='hideorshow("x873","x874")'>show</button></p>
   177         - <blockquote id='x874' style='display:none;'>
          115  + <div id='x874' style='display:none;' class='imgcontainer'>
   178    116    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   179         -</blockquote>
   180         -</blockquote>
          117  +</div>
          118  +</div>
   181    119   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   182    120   <button id='x875' onclick='hideorshow("x875","x876")'>show</button></p>
   183         - <blockquote id='x876' style='display:none;'>
          121  + <div id='x876' style='display:none;' class='imgcontainer'>
   184    122    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   185    123   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   186    124   <button id='x877' onclick='hideorshow("x877","x878")'>show</button></p>
   187         - <blockquote id='x878' style='display:none;'>
          125  + <div id='x878' style='display:none;' class='imgcontainer'>
   188    126    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   189         -</blockquote>
   190         -</blockquote>
   191         -</blockquote>
          127  +</div>
          128  +</div>
          129  +</div>
   192    130   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   193    131   <button id='x879' onclick='hideorshow("x879","x880")'>show</button></p>
   194         - <blockquote id='x880' style='display:none;'>
          132  + <div id='x880' style='display:none;' class='imgcontainer'>
   195    133    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   196    134   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   197    135   <button id='x881' onclick='hideorshow("x881","x882")'>show</button></p>
   198         - <blockquote id='x882' style='display:none;'>
          136  + <div id='x882' style='display:none;' class='imgcontainer'>
   199    137    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   200         -</blockquote>
          138  +</div>
   201    139   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   202    140   <button id='x883' onclick='hideorshow("x883","x884")'>show</button></p>
   203         - <blockquote id='x884' style='display:none;'>
          141  + <div id='x884' style='display:none;' class='imgcontainer'>
   204    142    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   205         -</blockquote>
          143  +</div>
   206    144   <p><b><a href="syntax/expr.html">expr:</a></b>
   207    145   <button id='x885' onclick='hideorshow("x885","x886")'>show</button></p>
   208         - <blockquote id='x886' style='display:none;'>
          146  + <div id='x886' style='display:none;' class='imgcontainer'>
   209    147    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   210    148   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   211    149   <button id='x887' onclick='hideorshow("x887","x888")'>show</button></p>
   212         - <blockquote id='x888' style='display:none;'>
          150  + <div id='x888' style='display:none;' class='imgcontainer'>
   213    151    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   214         -</blockquote>
          152  +</div>
   215    153   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   216    154   <button id='x889' onclick='hideorshow("x889","x890")'>show</button></p>
   217         - <blockquote id='x890' style='display:none;'>
          155  + <div id='x890' style='display:none;' class='imgcontainer'>
   218    156    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   219         -</blockquote>
          157  +</div>
   220    158   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   221    159   <button id='x891' onclick='hideorshow("x891","x892")'>show</button></p>
   222         - <blockquote id='x892' style='display:none;'>
          160  + <div id='x892' style='display:none;' class='imgcontainer'>
   223    161    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   224    162   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   225    163   <button id='x893' onclick='hideorshow("x893","x894")'>show</button></p>
   226         - <blockquote id='x894' style='display:none;'>
          164  + <div id='x894' style='display:none;' class='imgcontainer'>
   227    165    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   228         -</blockquote>
   229         -</blockquote>
   230         -</blockquote>
          166  +</div>
          167  +</div>
          168  +</div>
   231    169   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   232    170   <button id='x895' onclick='hideorshow("x895","x896")'>show</button></p>
   233         - <blockquote id='x896' style='display:none;'>
          171  + <div id='x896' style='display:none;' class='imgcontainer'>
   234    172    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   235    173   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   236    174   <button id='x897' onclick='hideorshow("x897","x898")'>show</button></p>
   237         - <blockquote id='x898' style='display:none;'>
          175  + <div id='x898' style='display:none;' class='imgcontainer'>
   238    176    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   239         -</blockquote>
          177  +</div>
   240    178   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   241    179   <button id='x899' onclick='hideorshow("x899","x900")'>show</button></p>
   242         - <blockquote id='x900' style='display:none;'>
          180  + <div id='x900' style='display:none;' class='imgcontainer'>
   243    181    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   244         -</blockquote>
   245         -</blockquote>
          182  +</div>
          183  +</div>
   246    184   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   247    185   <button id='x901' onclick='hideorshow("x901","x902")'>show</button></p>
   248         - <blockquote id='x902' style='display:none;'>
          186  + <div id='x902' style='display:none;' class='imgcontainer'>
   249    187    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   250         -</blockquote>
          188  +</div>
   251    189   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   252    190   <button id='x903' onclick='hideorshow("x903","x904")'>show</button></p>
   253         - <blockquote id='x904' style='display:none;'>
          191  + <div id='x904' style='display:none;' class='imgcontainer'>
   254    192    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   255         -</blockquote>
          193  +</div>
   256    194   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   257    195   <button id='x905' onclick='hideorshow("x905","x906")'>show</button></p>
   258         - <blockquote id='x906' style='display:none;'>
          196  + <div id='x906' style='display:none;' class='imgcontainer'>
   259    197    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   260         -</blockquote>
   261         -</blockquote>
          198  +</div>
          199  +</div>
   262    200   <p><b><a href="syntax/table-constraint.html">table-constraint:</a></b>
   263    201   <button id='x907' onclick='hideorshow("x907","x908")'>show</button></p>
   264         - <blockquote id='x908' style='display:none;'>
          202  + <div id='x908' style='display:none;' class='imgcontainer'>
   265    203    <img alt="syntax diagram table-constraint" src="images/syntax/table-constraint.gif" />
   266    204   <p><b><a href="syntax/conflict-clause.html">conflict-clause:</a></b>
   267    205   <button id='x909' onclick='hideorshow("x909","x910")'>show</button></p>
   268         - <blockquote id='x910' style='display:none;'>
          206  + <div id='x910' style='display:none;' class='imgcontainer'>
   269    207    <img alt="syntax diagram conflict-clause" src="images/syntax/conflict-clause.gif" />
   270         -</blockquote>
          208  +</div>
   271    209   <p><b><a href="syntax/expr.html">expr:</a></b>
   272    210   <button id='x911' onclick='hideorshow("x911","x912")'>show</button></p>
   273         - <blockquote id='x912' style='display:none;'>
          211  + <div id='x912' style='display:none;' class='imgcontainer'>
   274    212    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   275    213   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   276    214   <button id='x913' onclick='hideorshow("x913","x914")'>show</button></p>
   277         - <blockquote id='x914' style='display:none;'>
          215  + <div id='x914' style='display:none;' class='imgcontainer'>
   278    216    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   279         -</blockquote>
          217  +</div>
   280    218   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   281    219   <button id='x915' onclick='hideorshow("x915","x916")'>show</button></p>
   282         - <blockquote id='x916' style='display:none;'>
          220  + <div id='x916' style='display:none;' class='imgcontainer'>
   283    221    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   284         -</blockquote>
          222  +</div>
   285    223   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   286    224   <button id='x917' onclick='hideorshow("x917","x918")'>show</button></p>
   287         - <blockquote id='x918' style='display:none;'>
          225  + <div id='x918' style='display:none;' class='imgcontainer'>
   288    226    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   289    227   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   290    228   <button id='x919' onclick='hideorshow("x919","x920")'>show</button></p>
   291         - <blockquote id='x920' style='display:none;'>
          229  + <div id='x920' style='display:none;' class='imgcontainer'>
   292    230    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   293         -</blockquote>
   294         -</blockquote>
   295         -</blockquote>
          231  +</div>
          232  +</div>
          233  +</div>
   296    234   <p><b><a href="syntax/foreign-key-clause.html">foreign-key-clause:</a></b>
   297    235   <button id='x921' onclick='hideorshow("x921","x922")'>show</button></p>
   298         - <blockquote id='x922' style='display:none;'>
          236  + <div id='x922' style='display:none;' class='imgcontainer'>
   299    237    <img alt="syntax diagram foreign-key-clause" src="images/syntax/foreign-key-clause.gif" />
   300         -</blockquote>
          238  +</div>
   301    239   <p><b><a href="syntax/indexed-column.html">indexed-column:</a></b>
   302    240   <button id='x923' onclick='hideorshow("x923","x924")'>show</button></p>
   303         - <blockquote id='x924' style='display:none;'>
          241  + <div id='x924' style='display:none;' class='imgcontainer'>
   304    242    <img alt="syntax diagram indexed-column" src="images/syntax/indexed-column.gif" />
   305         -</blockquote>
   306         -</blockquote>
   307         -</blockquote>
          243  +</div>
          244  +</div>
          245  +</div>
   308    246   
   309    247   
   310    248   <p>The "CREATE TABLE" command is used to create a new table in an SQLite 
   311    249   database. A CREATE TABLE command specifies the following attributes of the
   312    250   new table:
   313    251   
   314    252   <ul>

Changes to Doc/Extra/Core/lang_createtrigger.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: CREATE TRIGGER</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE TRIGGER</h2><p><b><a href="syntax/create-trigger-stmt.html">create-trigger-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE TRIGGER</h2></div><p><b><a href="syntax/create-trigger-stmt.html">create-trigger-stmt:</a></b>
   139     77   <button id='x925' onclick='hideorshow("x925","x926")'>hide</button></p>
   140         - <blockquote id='x926'>
           78  + <div id='x926' class='imgcontainer'>
   141     79    <img alt="syntax diagram create-trigger-stmt" src="images/syntax/create-trigger-stmt.gif" />
   142     80   <p><b><a href="syntax/delete-stmt.html">delete-stmt:</a></b>
   143     81   <button id='x927' onclick='hideorshow("x927","x928")'>show</button></p>
   144         - <blockquote id='x928' style='display:none;'>
           82  + <div id='x928' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram delete-stmt" src="images/syntax/delete-stmt.gif" />
   146     84   <p><b><a href="syntax/qualified-table-name.html">qualified-table-name:</a></b>
   147     85   <button id='x929' onclick='hideorshow("x929","x930")'>show</button></p>
   148         - <blockquote id='x930' style='display:none;'>
           86  + <div id='x930' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram qualified-table-name" src="images/syntax/qualified-table-name.gif" />
   150         -</blockquote>
           88  +</div>
   151     89   <p><b><a href="syntax/with-clause.html">with-clause:</a></b>
   152     90   <button id='x931' onclick='hideorshow("x931","x932")'>show</button></p>
   153         - <blockquote id='x932' style='display:none;'>
           91  + <div id='x932' style='display:none;' class='imgcontainer'>
   154     92    <img alt="syntax diagram with-clause" src="images/syntax/with-clause.gif" />
   155     93   <p><b><a href="syntax/cte-table-name.html">cte-table-name:</a></b>
   156     94   <button id='x933' onclick='hideorshow("x933","x934")'>show</button></p>
   157         - <blockquote id='x934' style='display:none;'>
           95  + <div id='x934' style='display:none;' class='imgcontainer'>
   158     96    <img alt="syntax diagram cte-table-name" src="images/syntax/cte-table-name.gif" />
   159         -</blockquote>
   160         -</blockquote>
   161         -</blockquote>
           97  +</div>
           98  +</div>
           99  +</div>
   162    100   <p><b><a href="syntax/expr.html">expr:</a></b>
   163    101   <button id='x935' onclick='hideorshow("x935","x936")'>show</button></p>
   164         - <blockquote id='x936' style='display:none;'>
          102  + <div id='x936' style='display:none;' class='imgcontainer'>
   165    103    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   166    104   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   167    105   <button id='x937' onclick='hideorshow("x937","x938")'>show</button></p>
   168         - <blockquote id='x938' style='display:none;'>
          106  + <div id='x938' style='display:none;' class='imgcontainer'>
   169    107    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   170         -</blockquote>
          108  +</div>
   171    109   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   172    110   <button id='x939' onclick='hideorshow("x939","x940")'>show</button></p>
   173         - <blockquote id='x940' style='display:none;'>
          111  + <div id='x940' style='display:none;' class='imgcontainer'>
   174    112    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   175         -</blockquote>
          113  +</div>
   176    114   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   177    115   <button id='x941' onclick='hideorshow("x941","x942")'>show</button></p>
   178         - <blockquote id='x942' style='display:none;'>
          116  + <div id='x942' style='display:none;' class='imgcontainer'>
   179    117    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   180    118   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   181    119   <button id='x943' onclick='hideorshow("x943","x944")'>show</button></p>
   182         - <blockquote id='x944' style='display:none;'>
          120  + <div id='x944' style='display:none;' class='imgcontainer'>
   183    121    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   184         -</blockquote>
   185         -</blockquote>
   186         -</blockquote>
          122  +</div>
          123  +</div>
          124  +</div>
   187    125   <p><b><a href="syntax/insert-stmt.html">insert-stmt:</a></b>
   188    126   <button id='x945' onclick='hideorshow("x945","x946")'>show</button></p>
   189         - <blockquote id='x946' style='display:none;'>
          127  + <div id='x946' style='display:none;' class='imgcontainer'>
   190    128    <img alt="syntax diagram insert-stmt" src="images/syntax/insert-stmt.gif" />
   191    129   <p><b><a href="syntax/with-clause.html">with-clause:</a></b>
   192    130   <button id='x947' onclick='hideorshow("x947","x948")'>show</button></p>
   193         - <blockquote id='x948' style='display:none;'>
          131  + <div id='x948' style='display:none;' class='imgcontainer'>
   194    132    <img alt="syntax diagram with-clause" src="images/syntax/with-clause.gif" />
   195    133   <p><b><a href="syntax/cte-table-name.html">cte-table-name:</a></b>
   196    134   <button id='x949' onclick='hideorshow("x949","x950")'>show</button></p>
   197         - <blockquote id='x950' style='display:none;'>
          135  + <div id='x950' style='display:none;' class='imgcontainer'>
   198    136    <img alt="syntax diagram cte-table-name" src="images/syntax/cte-table-name.gif" />
   199         -</blockquote>
   200         -</blockquote>
   201         -</blockquote>
          137  +</div>
          138  +</div>
          139  +</div>
   202    140   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   203    141   <button id='x951' onclick='hideorshow("x951","x952")'>show</button></p>
   204         - <blockquote id='x952' style='display:none;'>
          142  + <div id='x952' style='display:none;' class='imgcontainer'>
   205    143    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   206    144   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   207    145   <button id='x953' onclick='hideorshow("x953","x954")'>show</button></p>
   208         - <blockquote id='x954' style='display:none;'>
          146  + <div id='x954' style='display:none;' class='imgcontainer'>
   209    147    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   210         -</blockquote>
          148  +</div>
   211    149   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   212    150   <button id='x955' onclick='hideorshow("x955","x956")'>show</button></p>
   213         - <blockquote id='x956' style='display:none;'>
          151  + <div id='x956' style='display:none;' class='imgcontainer'>
   214    152    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   215         -</blockquote>
          153  +</div>
   216    154   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   217    155   <button id='x957' onclick='hideorshow("x957","x958")'>show</button></p>
   218         - <blockquote id='x958' style='display:none;'>
          156  + <div id='x958' style='display:none;' class='imgcontainer'>
   219    157    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   220    158   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   221    159   <button id='x959' onclick='hideorshow("x959","x960")'>show</button></p>
   222         - <blockquote id='x960' style='display:none;'>
          160  + <div id='x960' style='display:none;' class='imgcontainer'>
   223    161    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   224         -</blockquote>
          162  +</div>
   225    163   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   226    164   <button id='x961' onclick='hideorshow("x961","x962")'>show</button></p>
   227         - <blockquote id='x962' style='display:none;'>
          165  + <div id='x962' style='display:none;' class='imgcontainer'>
   228    166    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   229         -</blockquote>
   230         -</blockquote>
          167  +</div>
          168  +</div>
   231    169   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   232    170   <button id='x963' onclick='hideorshow("x963","x964")'>show</button></p>
   233         - <blockquote id='x964' style='display:none;'>
          171  + <div id='x964' style='display:none;' class='imgcontainer'>
   234    172    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   235         -</blockquote>
          173  +</div>
   236    174   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   237    175   <button id='x965' onclick='hideorshow("x965","x966")'>show</button></p>
   238         - <blockquote id='x966' style='display:none;'>
          176  + <div id='x966' style='display:none;' class='imgcontainer'>
   239    177    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   240         -</blockquote>
          178  +</div>
   241    179   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   242    180   <button id='x967' onclick='hideorshow("x967","x968")'>show</button></p>
   243         - <blockquote id='x968' style='display:none;'>
          181  + <div id='x968' style='display:none;' class='imgcontainer'>
   244    182    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   245         -</blockquote>
   246         -</blockquote>
          183  +</div>
          184  +</div>
   247    185   <p><b><a href="syntax/update-stmt.html">update-stmt:</a></b>
   248    186   <button id='x969' onclick='hideorshow("x969","x970")'>show</button></p>
   249         - <blockquote id='x970' style='display:none;'>
          187  + <div id='x970' style='display:none;' class='imgcontainer'>
   250    188    <img alt="syntax diagram update-stmt" src="images/syntax/update-stmt.gif" />
   251    189   <p><b><a href="syntax/qualified-table-name.html">qualified-table-name:</a></b>
   252    190   <button id='x971' onclick='hideorshow("x971","x972")'>show</button></p>
   253         - <blockquote id='x972' style='display:none;'>
          191  + <div id='x972' style='display:none;' class='imgcontainer'>
   254    192    <img alt="syntax diagram qualified-table-name" src="images/syntax/qualified-table-name.gif" />
   255         -</blockquote>
          193  +</div>
   256    194   <p><b><a href="syntax/with-clause.html">with-clause:</a></b>
   257    195   <button id='x973' onclick='hideorshow("x973","x974")'>show</button></p>
   258         - <blockquote id='x974' style='display:none;'>
          196  + <div id='x974' style='display:none;' class='imgcontainer'>
   259    197    <img alt="syntax diagram with-clause" src="images/syntax/with-clause.gif" />
   260    198   <p><b><a href="syntax/cte-table-name.html">cte-table-name:</a></b>
   261    199   <button id='x975' onclick='hideorshow("x975","x976")'>show</button></p>
   262         - <blockquote id='x976' style='display:none;'>
          200  + <div id='x976' style='display:none;' class='imgcontainer'>
   263    201    <img alt="syntax diagram cte-table-name" src="images/syntax/cte-table-name.gif" />
   264         -</blockquote>
   265         -</blockquote>
   266         -</blockquote>
   267         -</blockquote>
          202  +</div>
          203  +</div>
          204  +</div>
          205  +</div>
   268    206   
   269    207   
   270    208   <p>The CREATE TRIGGER statement is used to add triggers to the 
   271    209   database schema. Triggers are database operations 
   272    210   that are automatically performed when a specified database event
   273    211   occurs.  </p>
   274    212   
................................................................................
   466    404   <a name="raise"></a>
   467    405   
   468    406   <h3>The RAISE() function</h3>
   469    407   
   470    408   <p>A special SQL function RAISE() may be used within a trigger-program,
   471    409   with the following syntax</p> 
   472    410   
   473         -<p><b><a href="syntax/raise-function.html">raise-function:</a></b></p><blockquote>
          411  +<p><b><a href="syntax/raise-function.html">raise-function:</a></b></p><div class='imgcontainer'>
   474    412    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif"></img>
   475         - </blockquote>
          413  + </div>
   476    414   
   477    415   
   478    416   <p>When one of RAISE(ROLLBACK,...), RAISE(ABORT,...) or RAISE(FAIL,...)
   479    417   is called during trigger-program
   480    418   execution, the specified <a href="lang_conflict.html">ON CONFLICT</a> processing is performed
   481    419   the current query terminates.
   482    420   An error code of <a href="rescode.html#constraint">SQLITE_CONSTRAINT</a> is returned to the application,

Changes to Doc/Extra/Core/lang_createview.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: CREATE VIEW</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE VIEW</h2><p><b><a href="syntax/create-view-stmt.html">create-view-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE VIEW</h2></div><p><b><a href="syntax/create-view-stmt.html">create-view-stmt:</a></b>
   139     77   <button id='x977' onclick='hideorshow("x977","x978")'>hide</button></p>
   140         - <blockquote id='x978'>
           78  + <div id='x978' class='imgcontainer'>
   141     79    <img alt="syntax diagram create-view-stmt" src="images/syntax/create-view-stmt.gif" />
   142     80   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   143     81   <button id='x979' onclick='hideorshow("x979","x980")'>show</button></p>
   144         - <blockquote id='x980' style='display:none;'>
           82  + <div id='x980' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   146     84   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   147     85   <button id='x981' onclick='hideorshow("x981","x982")'>show</button></p>
   148         - <blockquote id='x982' style='display:none;'>
           86  + <div id='x982' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   150         -</blockquote>
           88  +</div>
   151     89   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   152     90   <button id='x983' onclick='hideorshow("x983","x984")'>show</button></p>
   153         - <blockquote id='x984' style='display:none;'>
           91  + <div id='x984' style='display:none;' class='imgcontainer'>
   154     92    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   155         -</blockquote>
           93  +</div>
   156     94   <p><b><a href="syntax/expr.html">expr:</a></b>
   157     95   <button id='x985' onclick='hideorshow("x985","x986")'>show</button></p>
   158         - <blockquote id='x986' style='display:none;'>
           96  + <div id='x986' style='display:none;' class='imgcontainer'>
   159     97    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   160     98   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   161     99   <button id='x987' onclick='hideorshow("x987","x988")'>show</button></p>
   162         - <blockquote id='x988' style='display:none;'>
          100  + <div id='x988' style='display:none;' class='imgcontainer'>
   163    101    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   164         -</blockquote>
          102  +</div>
   165    103   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   166    104   <button id='x989' onclick='hideorshow("x989","x990")'>show</button></p>
   167         - <blockquote id='x990' style='display:none;'>
          105  + <div id='x990' style='display:none;' class='imgcontainer'>
   168    106    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   169         -</blockquote>
          107  +</div>
   170    108   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   171    109   <button id='x991' onclick='hideorshow("x991","x992")'>show</button></p>
   172         - <blockquote id='x992' style='display:none;'>
          110  + <div id='x992' style='display:none;' class='imgcontainer'>
   173    111    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   174    112   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   175    113   <button id='x993' onclick='hideorshow("x993","x994")'>show</button></p>
   176         - <blockquote id='x994' style='display:none;'>
          114  + <div id='x994' style='display:none;' class='imgcontainer'>
   177    115    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   178         -</blockquote>
   179         -</blockquote>
   180         -</blockquote>
          116  +</div>
          117  +</div>
          118  +</div>
   181    119   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   182    120   <button id='x995' onclick='hideorshow("x995","x996")'>show</button></p>
   183         - <blockquote id='x996' style='display:none;'>
          121  + <div id='x996' style='display:none;' class='imgcontainer'>
   184    122    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   185    123   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   186    124   <button id='x997' onclick='hideorshow("x997","x998")'>show</button></p>
   187         - <blockquote id='x998' style='display:none;'>
          125  + <div id='x998' style='display:none;' class='imgcontainer'>
   188    126    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   189         -</blockquote>
          127  +</div>
   190    128   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   191    129   <button id='x999' onclick='hideorshow("x999","x1000")'>show</button></p>
   192         - <blockquote id='x1000' style='display:none;'>
          130  + <div id='x1000' style='display:none;' class='imgcontainer'>
   193    131    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   194         -</blockquote>
   195         -</blockquote>
          132  +</div>
          133  +</div>
   196    134   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   197    135   <button id='x1001' onclick='hideorshow("x1001","x1002")'>show</button></p>
   198         - <blockquote id='x1002' style='display:none;'>
          136  + <div id='x1002' style='display:none;' class='imgcontainer'>
   199    137    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   200         -</blockquote>
          138  +</div>
   201    139   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   202    140   <button id='x1003' onclick='hideorshow("x1003","x1004")'>show</button></p>
   203         - <blockquote id='x1004' style='display:none;'>
          141  + <div id='x1004' style='display:none;' class='imgcontainer'>
   204    142    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   205         -</blockquote>
          143  +</div>
   206    144   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   207    145   <button id='x1005' onclick='hideorshow("x1005","x1006")'>show</button></p>
   208         - <blockquote id='x1006' style='display:none;'>
          146  + <div id='x1006' style='display:none;' class='imgcontainer'>
   209    147    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   210         -</blockquote>
   211         -</blockquote>
   212         -</blockquote>
          148  +</div>
          149  +</div>
          150  +</div>
   213    151   
   214    152   
   215    153   <p>The CREATE VIEW command assigns a name to a pre-packaged 
   216    154   <a href="lang_select.html">SELECT</a> statement. 
   217    155   Once the view is created, it can be used in the FROM clause
   218    156   of another <a href="lang_select.html">SELECT</a> in place of a table name.
   219    157   </p>

Changes to Doc/Extra/Core/lang_createvtab.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: CREATE VIRTUAL TABLE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE VIRTUAL TABLE</h2><p><b><a href="syntax/create-virtual-table-stmt.html">create-virtual-table-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>CREATE VIRTUAL TABLE</h2></div><p><b><a href="syntax/create-virtual-table-stmt.html">create-virtual-table-stmt:</a></b>
   139     77   <button id='x1007' onclick='hideorshow("x1007","x1008")'>hide</button></p>
   140         - <blockquote id='x1008'>
           78  + <div id='x1008' class='imgcontainer'>
   141     79    <img alt="syntax diagram create-virtual-table-stmt" src="images/syntax/create-virtual-table-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>A <a href="vtab.html">virtual table</a> is an interface to an external storage or computation
   146     84   engine that appears to be a table but does not actually store information
   147     85   in the database file.</p>
   148     86   
   149     87   <p>In general, you can do anything with a <a href="vtab.html">virtual table</a> that can be done

Changes to Doc/Extra/Core/lang_datefunc.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: Date And Time Functions</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Date And Time Functions</h2>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Date And Time Functions</h2></div>
   139     77   
   140     78   <p>
   141     79   SQLite supports five date and time functions as follows:
   142     80   </p>
   143     81   
   144     82   <p>
   145     83   <ol>

Changes to Doc/Extra/Core/lang_delete.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: DELETE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DELETE</h2><p><b><a href="syntax/delete-stmt.html">delete-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DELETE</h2></div><p><b><a href="syntax/delete-stmt.html">delete-stmt:</a></b>
   139     77   <button id='x1009' onclick='hideorshow("x1009","x1010")'>hide</button></p>
   140         - <blockquote id='x1010'>
           78  + <div id='x1010' class='imgcontainer'>
   141     79    <img alt="syntax diagram delete-stmt" src="images/syntax/delete-stmt.gif" />
   142     80   <p><b><a href="syntax/expr.html">expr:</a></b>
   143     81   <button id='x1011' onclick='hideorshow("x1011","x1012")'>show</button></p>
   144         - <blockquote id='x1012' style='display:none;'>
           82  + <div id='x1012' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   146     84   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   147     85   <button id='x1013' onclick='hideorshow("x1013","x1014")'>show</button></p>
   148         - <blockquote id='x1014' style='display:none;'>
           86  + <div id='x1014' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   150         -</blockquote>
           88  +</div>
   151     89   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   152     90   <button id='x1015' onclick='hideorshow("x1015","x1016")'>show</button></p>
   153         - <blockquote id='x1016' style='display:none;'>
           91  + <div id='x1016' style='display:none;' class='imgcontainer'>
   154     92    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   155         -</blockquote>
           93  +</div>
   156     94   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   157     95   <button id='x1017' onclick='hideorshow("x1017","x1018")'>show</button></p>
   158         - <blockquote id='x1018' style='display:none;'>
           96  + <div id='x1018' style='display:none;' class='imgcontainer'>
   159     97    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   160     98   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   161     99   <button id='x1019' onclick='hideorshow("x1019","x1020")'>show</button></p>
   162         - <blockquote id='x1020' style='display:none;'>
          100  + <div id='x1020' style='display:none;' class='imgcontainer'>
   163    101    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   164         -</blockquote>
          102  +</div>
   165    103   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   166    104   <button id='x1021' onclick='hideorshow("x1021","x1022")'>show</button></p>
   167         - <blockquote id='x1022' style='display:none;'>
          105  + <div id='x1022' style='display:none;' class='imgcontainer'>
   168    106    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   169         -</blockquote>
          107  +</div>
   170    108   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   171    109   <button id='x1023' onclick='hideorshow("x1023","x1024")'>show</button></p>
   172         - <blockquote id='x1024' style='display:none;'>
          110  + <div id='x1024' style='display:none;' class='imgcontainer'>
   173    111    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   174    112   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   175    113   <button id='x1025' onclick='hideorshow("x1025","x1026")'>show</button></p>
   176         - <blockquote id='x1026' style='display:none;'>
          114  + <div id='x1026' style='display:none;' class='imgcontainer'>
   177    115    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   178         -</blockquote>
          116  +</div>
   179    117   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   180    118   <button id='x1027' onclick='hideorshow("x1027","x1028")'>show</button></p>
   181         - <blockquote id='x1028' style='display:none;'>
          119  + <div id='x1028' style='display:none;' class='imgcontainer'>
   182    120    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   183         -</blockquote>
   184         -</blockquote>
          121  +</div>
          122  +</div>
   185    123   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   186    124   <button id='x1029' onclick='hideorshow("x1029","x1030")'>show</button></p>
   187         - <blockquote id='x1030' style='display:none;'>
          125  + <div id='x1030' style='display:none;' class='imgcontainer'>
   188    126    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   189         -</blockquote>
          127  +</div>
   190    128   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   191    129   <button id='x1031' onclick='hideorshow("x1031","x1032")'>show</button></p>
   192         - <blockquote id='x1032' style='display:none;'>
          130  + <div id='x1032' style='display:none;' class='imgcontainer'>
   193    131    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   194         -</blockquote>
          132  +</div>
   195    133   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   196    134   <button id='x1033' onclick='hideorshow("x1033","x1034")'>show</button></p>
   197         - <blockquote id='x1034' style='display:none;'>
          135  + <div id='x1034' style='display:none;' class='imgcontainer'>
   198    136    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   199         -</blockquote>
   200         -</blockquote>
          137  +</div>
          138  +</div>
   201    139   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   202    140   <button id='x1035' onclick='hideorshow("x1035","x1036")'>show</button></p>
   203         - <blockquote id='x1036' style='display:none;'>
          141  + <div id='x1036' style='display:none;' class='imgcontainer'>
   204    142    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   205    143   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   206    144   <button id='x1037' onclick='hideorshow("x1037","x1038")'>show</button></p>
   207         - <blockquote id='x1038' style='display:none;'>
          145  + <div id='x1038' style='display:none;' class='imgcontainer'>
   208    146    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   209         -</blockquote>
   210         -</blockquote>
   211         -</blockquote>
          147  +</div>
          148  +</div>
          149  +</div>
   212    150   <p><b><a href="syntax/qualified-table-name.html">qualified-table-name:</a></b>
   213    151   <button id='x1039' onclick='hideorshow("x1039","x1040")'>show</button></p>
   214         - <blockquote id='x1040' style='display:none;'>
          152  + <div id='x1040' style='display:none;' class='imgcontainer'>
   215    153    <img alt="syntax diagram qualified-table-name" src="images/syntax/qualified-table-name.gif" />
   216         -</blockquote>
          154  +</div>
   217    155   <p><b><a href="syntax/with-clause.html">with-clause:</a></b>
   218    156   <button id='x1041' onclick='hideorshow("x1041","x1042")'>show</button></p>
   219         - <blockquote id='x1042' style='display:none;'>
          157  + <div id='x1042' style='display:none;' class='imgcontainer'>
   220    158    <img alt="syntax diagram with-clause" src="images/syntax/with-clause.gif" />
   221    159   <p><b><a href="syntax/cte-table-name.html">cte-table-name:</a></b>
   222    160   <button id='x1043' onclick='hideorshow("x1043","x1044")'>show</button></p>
   223         - <blockquote id='x1044' style='display:none;'>
          161  + <div id='x1044' style='display:none;' class='imgcontainer'>
   224    162    <img alt="syntax diagram cte-table-name" src="images/syntax/cte-table-name.gif" />
   225         -</blockquote>
          163  +</div>
   226    164   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   227    165   <button id='x1045' onclick='hideorshow("x1045","x1046")'>show</button></p>
   228         - <blockquote id='x1046' style='display:none;'>
          166  + <div id='x1046' style='display:none;' class='imgcontainer'>
   229    167    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   230    168   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   231    169   <button id='x1047' onclick='hideorshow("x1047","x1048")'>show</button></p>
   232         - <blockquote id='x1048' style='display:none;'>
          170  + <div id='x1048' style='display:none;' class='imgcontainer'>
   233    171    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   234         -</blockquote>
          172  +</div>
   235    173   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   236    174   <button id='x1049' onclick='hideorshow("x1049","x1050")'>show</button></p>
   237         - <blockquote id='x1050' style='display:none;'>
          175  + <div id='x1050' style='display:none;' class='imgcontainer'>
   238    176    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   239         -</blockquote>
          177  +</div>
   240    178   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   241    179   <button id='x1051' onclick='hideorshow("x1051","x1052")'>show</button></p>
   242         - <blockquote id='x1052' style='display:none;'>
          180  + <div id='x1052' style='display:none;' class='imgcontainer'>
   243    181    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   244    182   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   245    183   <button id='x1053' onclick='hideorshow("x1053","x1054")'>show</button></p>
   246         - <blockquote id='x1054' style='display:none;'>
          184  + <div id='x1054' style='display:none;' class='imgcontainer'>
   247    185    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   248         -</blockquote>
          186  +</div>
   249    187   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   250    188   <button id='x1055' onclick='hideorshow("x1055","x1056")'>show</button></p>
   251         - <blockquote id='x1056' style='display:none;'>
          189  + <div id='x1056' style='display:none;' class='imgcontainer'>
   252    190    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   253         -</blockquote>
   254         -</blockquote>
          191  +</div>
          192  +</div>
   255    193   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   256    194   <button id='x1057' onclick='hideorshow("x1057","x1058")'>show</button></p>
   257         - <blockquote id='x1058' style='display:none;'>
          195  + <div id='x1058' style='display:none;' class='imgcontainer'>
   258    196    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   259         -</blockquote>
          197  +</div>
   260    198   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   261    199   <button id='x1059' onclick='hideorshow("x1059","x1060")'>show</button></p>
   262         - <blockquote id='x1060' style='display:none;'>
          200  + <div id='x1060' style='display:none;' class='imgcontainer'>
   263    201    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   264         -</blockquote>
          202  +</div>
   265    203   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   266    204   <button id='x1061' onclick='hideorshow("x1061","x1062")'>show</button></p>
   267         - <blockquote id='x1062' style='display:none;'>
          205  + <div id='x1062' style='display:none;' class='imgcontainer'>
   268    206    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   269         -</blockquote>
   270         -</blockquote>
   271         -</blockquote>
   272         -</blockquote>
          207  +</div>
          208  +</div>
          209  +</div>
          210  +</div>
   273    211   
   274    212   
   275    213   <p>The DELETE command removes records from the table identified by the
   276    214      <a href="syntax/qualified-table-name.html">qualified-table-name</a>.
   277    215   
   278    216   <p>If the WHERE clause is not present, all records in the table are deleted.
   279    217      If a WHERE clause is supplied, then only those rows for which the
................................................................................
   308    246   
   309    247   <h3>Optional LIMIT and ORDER BY clauses</h3>
   310    248   
   311    249   <p>If SQLite is compiled with the <a href="compile.html#enable_update_delete_limit">SQLITE_ENABLE_UPDATE_DELETE_LIMIT</a>
   312    250   compile-time option, then the syntax of the DELETE statement is
   313    251   extended by the addition of optional ORDER BY and LIMIT clauses:</p>
   314    252   
   315         -<p><b><a href="syntax/delete-stmt-limited.html">delete-stmt-limited:</a></b></p><blockquote>
          253  +<p><b><a href="syntax/delete-stmt-limited.html">delete-stmt-limited:</a></b></p><div class='imgcontainer'>
   316    254    <img alt="syntax diagram delete-stmt-limited" src="images/syntax/delete-stmt-limited.gif"></img>
   317         - </blockquote>
          255  + </div>
   318    256   
   319    257   
   320    258   <p>If a DELETE statement has a LIMIT clause, the maximum number of rows that
   321    259   will be deleted is found by evaluating the accompanying expression and casting
   322    260   it to an integer value. If the result of the evaluating the LIMIT clause
   323    261   cannot be losslessly converted to an integer value, it is an error. A 
   324    262   negative LIMIT value is interpreted as "no limit". If the DELETE statement 

Changes to Doc/Extra/Core/lang_detach.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: DETACH DATABASE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DETACH DATABASE</h2><p><b><a href="syntax/detach-stmt.html">detach-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DETACH DATABASE</h2></div><p><b><a href="syntax/detach-stmt.html">detach-stmt:</a></b>
   139     77   <button id='x1063' onclick='hideorshow("x1063","x1064")'>hide</button></p>
   140         - <blockquote id='x1064'>
           78  + <div id='x1064' class='imgcontainer'>
   141     79    <img alt="syntax diagram detach-stmt" src="images/syntax/detach-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>This statement detaches an additional database connection previously 
   146     84   attached using the <a href="lang_attach.html">ATTACH</a> statement.  
   147     85   When not in <a href="sharedcache.html">shared cache mode</a>, 
   148     86   it is possible to have the same database file attached multiple times using 
   149     87   different names, and detaching one connection to a file will leave the 

Changes to Doc/Extra/Core/lang_dropindex.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: DROP INDEX</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP INDEX</h2><p><b><a href="syntax/drop-index-stmt.html">drop-index-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP INDEX</h2></div><p><b><a href="syntax/drop-index-stmt.html">drop-index-stmt:</a></b>
   139     77   <button id='x1065' onclick='hideorshow("x1065","x1066")'>hide</button></p>
   140         - <blockquote id='x1066'>
           78  + <div id='x1066' class='imgcontainer'>
   141     79    <img alt="syntax diagram drop-index-stmt" src="images/syntax/drop-index-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>The DROP INDEX statement removes an index added
   146     84   with the <a href="lang_createindex.html">CREATE INDEX</a> statement.  The index is completely removed from
   147     85   the disk.  The only way to recover the index is to reenter the
   148     86   appropriate <a href="lang_createindex.html">CREATE INDEX</a> command.</p>
   149     87   
   150     88   

Changes to Doc/Extra/Core/lang_droptable.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: DROP TABLE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP TABLE</h2><p><b><a href="syntax/drop-table-stmt.html">drop-table-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP TABLE</h2></div><p><b><a href="syntax/drop-table-stmt.html">drop-table-stmt:</a></b>
   139     77   <button id='x1067' onclick='hideorshow("x1067","x1068")'>hide</button></p>
   140         - <blockquote id='x1068'>
           78  + <div id='x1068' class='imgcontainer'>
   141     79    <img alt="syntax diagram drop-table-stmt" src="images/syntax/drop-table-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>The DROP TABLE statement removes a table added with the
   146     84   <a href="lang_createtable.html">CREATE TABLE</a> statement.  The name specified is the
   147     85   table name.  The dropped table is completely removed from the database 
   148     86   schema and the disk file.  The table can not be recovered.  
   149     87   All indices and triggers

Changes to Doc/Extra/Core/lang_droptrigger.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: DROP TRIGGER</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP TRIGGER</h2><p><b><a href="syntax/drop-trigger-stmt.html">drop-trigger-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP TRIGGER</h2></div><p><b><a href="syntax/drop-trigger-stmt.html">drop-trigger-stmt:</a></b>
   139     77   <button id='x1069' onclick='hideorshow("x1069","x1070")'>hide</button></p>
   140         - <blockquote id='x1070'>
           78  + <div id='x1070' class='imgcontainer'>
   141     79    <img alt="syntax diagram drop-trigger-stmt" src="images/syntax/drop-trigger-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>The DROP TRIGGER statement removes a trigger created by the 
   146     84   <a href="lang_createtrigger.html">CREATE TRIGGER</a> statement. Once removed, the trigger definition is no
   147     85   longer present in the sqlite_master (or sqlite_temp_master) table and is
   148     86   not fired by any subsequent INSERT, UPDATE or DELETE statements.
   149     87   
   150     88   <p>Note that triggers are automatically dropped when the associated table is
   151     89   dropped.
   152     90   
   153     91   

Changes to Doc/Extra/Core/lang_dropview.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: DROP VIEW</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP VIEW</h2><p><b><a href="syntax/drop-view-stmt.html">drop-view-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>DROP VIEW</h2></div><p><b><a href="syntax/drop-view-stmt.html">drop-view-stmt:</a></b>
   139     77   <button id='x1071' onclick='hideorshow("x1071","x1072")'>hide</button></p>
   140         - <blockquote id='x1072'>
           78  + <div id='x1072' class='imgcontainer'>
   141     79    <img alt="syntax diagram drop-view-stmt" src="images/syntax/drop-view-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>The DROP VIEW statement removes a view created by the <a href="lang_createview.html">CREATE VIEW</a> 
   146     84     statement. The view definition is removed from the database schema, but 
   147     85     no actual data in the underlying base tables is modified.
   148     86   
   149     87   <p>The view to drop is identified by the view-name and optional 

Changes to Doc/Extra/Core/lang_explain.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: EXPLAIN</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>EXPLAIN</h2><p><b><a href="syntax/sql-stmt.html">sql-stmt:</a></b></p><blockquote>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>EXPLAIN</h2></div><p><b><a href="syntax/sql-stmt.html">sql-stmt:</a></b></p><div class='imgcontainer'>
   139     77    <img alt="syntax diagram sql-stmt" src="images/syntax/sql-stmt.gif"></img>
   140         - </blockquote>
           78  + </div>
   141     79   
   142     80   
   143     81   <p>An SQL statement can be preceded by the keyword "EXPLAIN" or
   144     82   by the phrase "EXPLAIN QUERY PLAN".  Either modification causes the
   145     83   SQL statement to behave as a query and to return information about
   146     84   how the SQL statement would have operated if the EXPLAIN keyword or
   147     85   phrase had been omitted.</p>

Changes to Doc/Extra/Core/lang_expr.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: expression</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>expression</h2><p><b><a href="syntax/expr.html">expr:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>expression</h2></div><p><b><a href="syntax/expr.html">expr:</a></b>
   139     77   <button id='x1073' onclick='hideorshow("x1073","x1074")'>hide</button></p>
   140         - <blockquote id='x1074'>
           78  + <div id='x1074' class='imgcontainer'>
   141     79    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   142     80   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   143     81   <button id='x1075' onclick='hideorshow("x1075","x1076")'>show</button></p>
   144         - <blockquote id='x1076' style='display:none;'>
           82  + <div id='x1076' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   146         -</blockquote>
           84  +</div>
   147     85   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   148     86   <button id='x1077' onclick='hideorshow("x1077","x1078")'>show</button></p>
   149         - <blockquote id='x1078' style='display:none;'>
           87  + <div id='x1078' style='display:none;' class='imgcontainer'>
   150     88    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   151         -</blockquote>
           89  +</div>
   152     90   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   153     91   <button id='x1079' onclick='hideorshow("x1079","x1080")'>show</button></p>
   154         - <blockquote id='x1080' style='display:none;'>
           92  + <div id='x1080' style='display:none;' class='imgcontainer'>
   155     93    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   156     94   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   157     95   <button id='x1081' onclick='hideorshow("x1081","x1082")'>show</button></p>
   158         - <blockquote id='x1082' style='display:none;'>
           96  + <div id='x1082' style='display:none;' class='imgcontainer'>
   159     97    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   160         -</blockquote>
           98  +</div>
   161     99   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   162    100   <button id='x1083' onclick='hideorshow("x1083","x1084")'>show</button></p>
   163         - <blockquote id='x1084' style='display:none;'>
          101  + <div id='x1084' style='display:none;' class='imgcontainer'>
   164    102    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   165         -</blockquote>
          103  +</div>
   166    104   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   167    105   <button id='x1085' onclick='hideorshow("x1085","x1086")'>show</button></p>
   168         - <blockquote id='x1086' style='display:none;'>
          106  + <div id='x1086' style='display:none;' class='imgcontainer'>
   169    107    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   170    108   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   171    109   <button id='x1087' onclick='hideorshow("x1087","x1088")'>show</button></p>
   172         - <blockquote id='x1088' style='display:none;'>
          110  + <div id='x1088' style='display:none;' class='imgcontainer'>
   173    111    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   174         -</blockquote>
          112  +</div>
   175    113   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   176    114   <button id='x1089' onclick='hideorshow("x1089","x1090")'>show</button></p>
   177         - <blockquote id='x1090' style='display:none;'>
          115  + <div id='x1090' style='display:none;' class='imgcontainer'>
   178    116    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   179         -</blockquote>
   180         -</blockquote>
          117  +</div>
          118  +</div>
   181    119   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   182    120   <button id='x1091' onclick='hideorshow("x1091","x1092")'>show</button></p>
   183         - <blockquote id='x1092' style='display:none;'>
          121  + <div id='x1092' style='display:none;' class='imgcontainer'>
   184    122    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   185         -</blockquote>
          123  +</div>
   186    124   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   187    125   <button id='x1093' onclick='hideorshow("x1093","x1094")'>show</button></p>
   188         - <blockquote id='x1094' style='display:none;'>
          126  + <div id='x1094' style='display:none;' class='imgcontainer'>
   189    127    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   190         -</blockquote>
          128  +</div>
   191    129   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   192    130   <button id='x1095' onclick='hideorshow("x1095","x1096")'>show</button></p>
   193         - <blockquote id='x1096' style='display:none;'>
          131  + <div id='x1096' style='display:none;' class='imgcontainer'>
   194    132    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   195         -</blockquote>
   196         -</blockquote>
          133  +</div>
          134  +</div>
   197    135   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   198    136   <button id='x1097' onclick='hideorshow("x1097","x1098")'>show</button></p>
   199         - <blockquote id='x1098' style='display:none;'>
          137  + <div id='x1098' style='display:none;' class='imgcontainer'>
   200    138    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   201    139   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   202    140   <button id='x1099' onclick='hideorshow("x1099","x1100")'>show</button></p>
   203         - <blockquote id='x1100' style='display:none;'>
          141  + <div id='x1100' style='display:none;' class='imgcontainer'>
   204    142    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   205         -</blockquote>
   206         -</blockquote>
   207         -</blockquote>
          143  +</div>
          144  +</div>
          145  +</div>
   208    146   
   209    147   
   210    148   <p>This section is different from the others.  Most other sections of
   211    149   this document talks about a particular SQL command.  This section does
   212    150   not talk about a standalone command but about "expressions" which are 
   213    151   subcomponents of most other commands.</p>
   214    152   
................................................................................
   283    221   A literal value represents a constant.
   284    222   Literal values may be integers, floating point numbers, strings,
   285    223   BLOBs, or NULLs.
   286    224   <p>
   287    225   The syntax for integer and floating point literals (collectively
   288    226   "numeric literals") is shown by the following diagram:</p>
   289    227   
   290         -<p><b><a href="syntax/numeric-literal.html">numeric-literal:</a></b></p><blockquote>
          228  +<p><b><a href="syntax/numeric-literal.html">numeric-literal:</a></b></p><div class='imgcontainer'>
   291    229    <img alt="syntax diagram numeric-literal" src="images/syntax/numeric-literal.gif"></img>
   292         - </blockquote>
          230  + </div>
   293    231   
   294    232   
   295    233   <p>
   296    234   If a numeric literal has a decimal point or an exponentiation
   297    235   clause or if its magnitude is less than -9223372036854775808 or
   298    236   greater than 9223372036854775807, then it is a floating point literal.
   299    237   Otherwise is it is an  integer literal.

Changes to Doc/Extra/Core/lang_indexedby.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: INDEXED BY</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>INDEXED BY</h2>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>INDEXED BY</h2></div>
   139     77   <p>The INDEXED BY phrase forces the <a href="optoverview.html">SQLite query planner</a> to use a
   140     78   particular named index on a <a href="lang_delete.html">DELETE</a>, <a href="lang_select.html">SELECT</a>, or <a href="lang_update.html">UPDATE</a> statement.
   141     79   The INDEXED BY phrase is an SQLite extension and
   142     80   is not portable to other SQL database engines.</p>
   143     81   
   144     82   <p><b><a href="syntax/qualified-table-name.html">qualified-table-name:</a></b>
   145     83   <button id='x1435' onclick='hideorshow("x1435","x1436")'>hide</button></p>
   146         - <blockquote id='x1436'>
           84  + <div id='x1436' class='imgcontainer'>
   147     85    <img alt="syntax diagram qualified-table-name" src="images/syntax/qualified-table-name.gif" />
   148         -</blockquote>
           86  +</div>
   149     87   
   150     88   
   151     89   <p>The "INDEXED BY <span class='yyterm'>index-name</span>" phrase specifies 
   152     90   that the named index
   153     91   must be used in order to look up values on the preceding table.
   154     92   If <span class='yyterm'>index-name</span> does not exist or cannot be used 
   155     93   for the query, then the preparation of the SQL statement fails.

Changes to Doc/Extra/Core/lang_insert.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: INSERT</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>INSERT</h2><p><b><a href="syntax/insert-stmt.html">insert-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>INSERT</h2></div><p><b><a href="syntax/insert-stmt.html">insert-stmt:</a></b>
   139     77   <button id='x1101' onclick='hideorshow("x1101","x1102")'>hide</button></p>
   140         - <blockquote id='x1102'>
           78  + <div id='x1102' class='imgcontainer'>
   141     79    <img alt="syntax diagram insert-stmt" src="images/syntax/insert-stmt.gif" />
   142     80   <p><b><a href="syntax/expr.html">expr:</a></b>
   143     81   <button id='x1103' onclick='hideorshow("x1103","x1104")'>show</button></p>
   144         - <blockquote id='x1104' style='display:none;'>
           82  + <div id='x1104' style='display:none;' class='imgcontainer'>
   145     83    <img alt="syntax diagram expr" src="images/syntax/expr.gif" />
   146     84   <p><b><a href="syntax/literal-value.html">literal-value:</a></b>
   147     85   <button id='x1105' onclick='hideorshow("x1105","x1106")'>show</button></p>
   148         - <blockquote id='x1106' style='display:none;'>
           86  + <div id='x1106' style='display:none;' class='imgcontainer'>
   149     87    <img alt="syntax diagram literal-value" src="images/syntax/literal-value.gif" />
   150         -</blockquote>
           88  +</div>
   151     89   <p><b><a href="syntax/raise-function.html">raise-function:</a></b>
   152     90   <button id='x1107' onclick='hideorshow("x1107","x1108")'>show</button></p>
   153         - <blockquote id='x1108' style='display:none;'>
           91  + <div id='x1108' style='display:none;' class='imgcontainer'>
   154     92    <img alt="syntax diagram raise-function" src="images/syntax/raise-function.gif" />
   155         -</blockquote>
           93  +</div>
   156     94   <p><b><a href="syntax/type-name.html">type-name:</a></b>
   157     95   <button id='x1109' onclick='hideorshow("x1109","x1110")'>show</button></p>
   158         - <blockquote id='x1110' style='display:none;'>
           96  + <div id='x1110' style='display:none;' class='imgcontainer'>
   159     97    <img alt="syntax diagram type-name" src="images/syntax/type-name.gif" />
   160     98   <p><b><a href="syntax/signed-number.html">signed-number:</a></b>
   161     99   <button id='x1111' onclick='hideorshow("x1111","x1112")'>show</button></p>
   162         - <blockquote id='x1112' style='display:none;'>
          100  + <div id='x1112' style='display:none;' class='imgcontainer'>
   163    101    <img alt="syntax diagram signed-number" src="images/syntax/signed-number.gif" />
   164         -</blockquote>
   165         -</blockquote>
   166         -</blockquote>
          102  +</div>
          103  +</div>
          104  +</div>
   167    105   <p><b><a href="syntax/select-stmt.html">select-stmt:</a></b>
   168    106   <button id='x1113' onclick='hideorshow("x1113","x1114")'>show</button></p>
   169         - <blockquote id='x1114' style='display:none;'>
          107  + <div id='x1114' style='display:none;' class='imgcontainer'>
   170    108    <img alt="syntax diagram select-stmt" src="images/syntax/select-stmt.gif" />
   171    109   <p><b><a href="syntax/common-table-expression.html">common-table-expression:</a></b>
   172    110   <button id='x1115' onclick='hideorshow("x1115","x1116")'>show</button></p>
   173         - <blockquote id='x1116' style='display:none;'>
          111  + <div id='x1116' style='display:none;' class='imgcontainer'>
   174    112    <img alt="syntax diagram common-table-expression" src="images/syntax/common-table-expression.gif" />
   175         -</blockquote>
          113  +</div>
   176    114   <p><b><a href="syntax/compound-operator.html">compound-operator:</a></b>
   177    115   <button id='x1117' onclick='hideorshow("x1117","x1118")'>show</button></p>
   178         - <blockquote id='x1118' style='display:none;'>
          116  + <div id='x1118' style='display:none;' class='imgcontainer'>
   179    117    <img alt="syntax diagram compound-operator" src="images/syntax/compound-operator.gif" />
   180         -</blockquote>
          118  +</div>
   181    119   <p><b><a href="syntax/join-clause.html">join-clause:</a></b>
   182    120   <button id='x1119' onclick='hideorshow("x1119","x1120")'>show</button></p>
   183         - <blockquote id='x1120' style='display:none;'>
          121  + <div id='x1120' style='display:none;' class='imgcontainer'>
   184    122    <img alt="syntax diagram join-clause" src="images/syntax/join-clause.gif" />
   185    123   <p><b><a href="syntax/join-constraint.html">join-constraint:</a></b>
   186    124   <button id='x1121' onclick='hideorshow("x1121","x1122")'>show</button></p>
   187         - <blockquote id='x1122' style='display:none;'>
          125  + <div id='x1122' style='display:none;' class='imgcontainer'>
   188    126    <img alt="syntax diagram join-constraint" src="images/syntax/join-constraint.gif" />
   189         -</blockquote>
          127  +</div>
   190    128   <p><b><a href="syntax/join-operator.html">join-operator:</a></b>
   191    129   <button id='x1123' onclick='hideorshow("x1123","x1124")'>show</button></p>
   192         - <blockquote id='x1124' style='display:none;'>
          130  + <div id='x1124' style='display:none;' class='imgcontainer'>
   193    131    <img alt="syntax diagram join-operator" src="images/syntax/join-operator.gif" />
   194         -</blockquote>
   195         -</blockquote>
          132  +</div>
          133  +</div>
   196    134   <p><b><a href="syntax/ordering-term.html">ordering-term:</a></b>
   197    135   <button id='x1125' onclick='hideorshow("x1125","x1126")'>show</button></p>
   198         - <blockquote id='x1126' style='display:none;'>
          136  + <div id='x1126' style='display:none;' class='imgcontainer'>
   199    137    <img alt="syntax diagram ordering-term" src="images/syntax/ordering-term.gif" />
   200         -</blockquote>
          138  +</div>
   201    139   <p><b><a href="syntax/result-column.html">result-column:</a></b>
   202    140   <button id='x1127' onclick='hideorshow("x1127","x1128")'>show</button></p>
   203         - <blockquote id='x1128' style='display:none;'>
          141  + <div id='x1128' style='display:none;' class='imgcontainer'>
   204    142    <img alt="syntax diagram result-column" src="images/syntax/result-column.gif" />
   205         -</blockquote>
          143  +</div>
   206    144   <p><b><a href="syntax/table-or-subquery.html">table-or-subquery:</a></b>
   207    145   <button id='x1129' onclick='hideorshow("x1129","x1130")'>show</button></p>
   208         - <blockquote id='x1130' style='display:none;'>
          146  + <div id='x1130' style='display:none;' class='imgcontainer'>
   209    147    <img alt="syntax diagram table-or-subquery" src="images/syntax/table-or-subquery.gif" />
   210         -</blockquote>
   211         -</blockquote>
          148  +</div>
          149  +</div>
   212    150   <p><b><a href="syntax/with-clause.html">with-clause:</a></b>
   213    151   <button id='x1131' onclick='hideorshow("x1131","x1132")'>show</button></p>
   214         - <blockquote id='x1132' style='display:none;'>
          152  + <div id='x1132' style='display:none;' class='imgcontainer'>
   215    153    <img alt="syntax diagram with-clause" src="images/syntax/with-clause.gif" />
   216    154   <p><b><a href="syntax/cte-table-name.html">cte-table-name:</a></b>
   217    155   <button id='x1133' onclick='hideorshow("x1133","x1134")'>show</button></p>
   218         - <blockquote id='x1134' style='display:none;'>
          156  + <div id='x1134' style='display:none;' class='imgcontainer'>
   219    157    <img alt="syntax diagram cte-table-name" src="images/syntax/cte-table-name.gif" />
   220         -</blockquote>
   221         -</blockquote>
   222         -</blockquote>
          158  +</div>
          159  +</div>
          160  +</div>
   223    161   
   224    162   
   225    163   <p>The INSERT statement comes in three basic forms.  
   226    164   <ul>
   227    165   <li><p>The first form (with the "VALUES" keyword) creates one or more
   228    166   new rows in
   229    167   an existing table. If the <span class='yyterm'>column-name</span> list after

Changes to Doc/Extra/Core/lang_keywords.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: SQLite Keywords</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>SQLite Keywords</h2></DIV>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>SQLite Keywords</h2></div></DIV>
   139     77   
   140     78   <p>The SQL standard specifies a huge number of keywords which may not
   141     79   be used as the names of tables, indices, columns, databases, user-defined
   142     80   functions, collations, virtual table modules, or any other named object.
   143     81   The list of keywords is so long that few people can remember them all.
   144     82   For most SQL code, your safest bet is to never use any English language
   145     83   word as the name of a user-defined object.</p>
................................................................................
   208    146   but some keywords may be omitted when SQL language features are
   209    147   disabled.
   210    148   Regardless of the compile-time configuration, any identifier that is not on
   211    149   the following 124 element
   212    150   list is not a keyword to the SQL parser in SQLite:
   213    151   </p>
   214    152   
          153  +<style>
          154  +#listtab29 tr td {vertical-align:top;}
          155  +</style>
          156  +<table id='listtab29' width='100%'></table>
          157  +<script>
          158  +var listitems29 = [{"u":"","x":"ABORT","s":0},
          159  +{"u":"","x":"ACTION","s":0},
          160  +{"u":"","x":"ADD","s":0},
          161  +{"u":"","x":"AFTER","s":0},
          162  +{"u":"","x":"ALL","s":0},
          163  +{"u":"","x":"ALTER","s":0},
          164  +{"u":"","x":"ANALYZE","s":0},
          165  +{"u":"","x":"AND","s":0},
          166  +{"u":"","x":"AS","s":0},
          167  +{"u":"","x":"ASC","s":0},
          168  +{"u":"","x":"ATTACH","s":0},
          169  +{"u":"","x":"AUTOINCREMENT","s":0},
          170  +{"u":"","x":"BEFORE","s":0},
          171  +{"u":"","x":"BEGIN","s":0},
          172  +{"u":"","x":"BETWEEN","s":0},
          173  +{"u":"","x":"BY","s":0},
          174  +{"u":"","x":"CASCADE","s":0},
          175  +{"u":"","x":"CASE","s":0},
          176  +{"u":"","x":"CAST","s":0},
          177  +{"u":"","x":"CHECK","s":0},
          178  +{"u":"","x":"COLLATE","s":0},
          179  +{"u":"","x":"COLUMN","s":0},
          180  +{"u":"","x":"COMMIT","s":0},
          181  +{"u":"","x":"CONFLICT","s":0},
          182  +{"u":"","x":"CONSTRAINT","s":0},
          183  +{"u":"","x":"CREATE","s":0},
          184  +{"u":"","x":"CROSS","s":0},
          185  +{"u":"","x":"CURRENT_DATE","s":0},
          186  +{"u":"","x":"CURRENT_TIME","s":0},
          187  +{"u":"","x":"CURRENT_TIMESTAMP","s":0},
          188  +{"u":"","x":"DATABASE","s":0},
          189  +{"u":"","x":"DEFAULT","s":0},
          190  +{"u":"","x":"DEFERRABLE","s":0},
          191  +{"u":"","x":"DEFERRED","s":0},
          192  +{"u":"","x":"DELETE","s":0},
          193  +{"u":"","x":"DESC","s":0},
          194  +{"u":"","x":"DETACH","s":0},
          195  +{"u":"","x":"DISTINCT","s":0},
          196  +{"u":"","x":"DROP","s":0},
          197  +{"u":"","x":"EACH","s":0},
          198  +{"u":"","x":"ELSE","s":0},
          199  +{"u":"","x":"END","s":0},
          200  +{"u":"","x":"ESCAPE","s":0},
          201  +{"u":"","x":"EXCEPT","s":0},
          202  +{"u":"","x":"EXCLUSIVE","s":0},
          203  +{"u":"","x":"EXISTS","s":0},
          204  +{"u":"","x":"EXPLAIN","s":0},
          205  +{"u":"","x":"FAIL","s":0},
          206  +{"u":"","x":"FOR","s":0},
          207  +{"u":"","x":"FOREIGN","s":0},
          208  +{"u":"","x":"FROM","s":0},
          209  +{"u":"","x":"FULL","s":0},
          210  +{"u":"","x":"GLOB","s":0},
          211  +{"u":"","x":"GROUP","s":0},
          212  +{"u":"","x":"HAVING","s":0},
          213  +{"u":"","x":"IF","s":0},
          214  +{"u":"","x":"IGNORE","s":0},
          215  +{"u":"","x":"IMMEDIATE","s":0},
          216  +{"u":"","x":"IN","s":0},
          217  +{"u":"","x":"INDEX","s":0},
          218  +{"u":"","x":"INDEXED","s":0},
          219  +{"u":"","x":"INITIALLY","s":0},
          220  +{"u":"","x":"INNER","s":0},
          221  +{"u":"","x":"INSERT","s":0},
          222  +{"u":"","x":"INSTEAD","s":0},
          223  +{"u":"","x":"INTERSECT","s":0},
          224  +{"u":"","x":"INTO","s":0},
          225  +{"u":"","x":"IS","s":0},
          226  +{"u":"","x":"ISNULL","s":0},
          227  +{"u":"","x":"JOIN","s":0},
          228  +{"u":"","x":"KEY","s":0},
          229  +{"u":"","x":"LEFT","s":0},
          230  +{"u":"","x":"LIKE","s":0},
          231  +{"u":"","x":"LIMIT","s":0},
          232  +{"u":"","x":"MATCH","s":0},
          233  +{"u":"","x":"NATURAL","s":0},
          234  +{"u":"","x":"NO","s":0},
          235  +{"u":"","x":"NOT","s":0},
          236  +{"u":"","x":"NOTNULL","s":0},
          237  +{"u":"","x":"NULL","s":0},
          238  +{"u":"","x":"OF","s":0},
          239  +{"u":"","x":"OFFSET","s":0},
          240  +{"u":"","x":"ON","s":0},
          241  +{"u":"","x":"OR","s":0},
          242  +{"u":"","x":"ORDER","s":0},
          243  +{"u":"","x":"OUTER","s":0},
          244  +{"u":"","x":"PLAN","s":0},
          245  +{"u":"","x":"PRAGMA","s":0},
          246  +{"u":"","x":"PRIMARY","s":0},
          247  +{"u":"","x":"QUERY","s":0},
          248  +{"u":"","x":"RAISE","s":0},
          249  +{"u":"","x":"RECURSIVE","s":0},
          250  +{"u":"","x":"REFERENCES","s":0},
          251  +{"u":"","x":"REGEXP","s":0},
          252  +{"u":"","x":"REINDEX","s":0},
          253  +{"u":"","x":"RELEASE","s":0},
          254  +{"u":"","x":"RENAME","s":0},
          255  +{"u":"","x":"REPLACE","s":0},
          256  +{"u":"","x":"RESTRICT","s":0},
          257  +{"u":"","x":"RIGHT","s":0},
          258  +{"u":"","x":"ROLLBACK","s":0},
          259  +{"u":"","x":"ROW","s":0},
          260  +{"u":"","x":"SAVEPOINT","s":0},
          261  +{"u":"","x":"SELECT","s":0},
          262  +{"u":"","x":"SET","s":0},
          263  +{"u":"","x":"TABLE","s":0},
          264  +{"u":"","x":"TEMP","s":0},
          265  +{"u":"","x":"TEMPORARY","s":0},
          266  +{"u":"","x":"THEN","s":0},
          267  +{"u":"","x":"TO","s":0},
          268  +{"u":"","x":"TRANSACTION","s":0},
          269  +{"u":"","x":"TRIGGER","s":0},
          270  +{"u":"","x":"UNION","s":0},
          271  +{"u":"","x":"UNIQUE","s":0},
          272  +{"u":"","x":"UPDATE","s":0},
          273  +{"u":"","x":"USING","s":0},
          274  +{"u":"","x":"VACUUM","s":0},
          275  +{"u":"","x":"VALUES","s":0},
          276  +{"u":"","x":"VIEW","s":0},
          277  +{"u":"","x":"VIRTUAL","s":0},
          278  +{"u":"","x":"WHEN","s":0},
          279  +{"u":"","x":"WHERE","s":0},
          280  +{"u":"","x":"WITH","s":0},
          281  +{"u":"","x":"WITHOUT","s":0}];
          282  +var j = 0;
          283  +var w = Math.max(document.documentElement.clientWidth,  window.innerWidth || 0);
          284  +var nCol = Math.floor(w/200);
          285  +if(nCol<=0) nCol=1;
          286  +var nRow = Math.ceil((listitems29.length+1)/nCol);
          287  +var h="<tr><td><ul class='multicol_list'>"
          288  +var ea
          289  +for(var i=0; i<listitems29.length; i++){
          290  +  if( (++j)>nRow ){
          291  +    h += "</ul></td>\n<td><ul class='multicol_list'>\n";
          292  +    j = 1;
          293  +  }
          294  +  if(listitems29[i].u=="" || listitems29[i].s==2){
          295  +    h += "<li>"
          296  +    ea = ""
          297  +  }else{
          298  +    h += "<li><a href='";
          299  +    h += listitems29[i].u;
          300  +    h += "'>";
          301  +    ea = "</a>"
          302  +  }
          303  +  if(listitems29[i].s==2 || listitems29[i].s==3) h += "<s>"
          304  +  h += listitems29[i].x;
          305  +  if(listitems29[i].s==2 || listitems29[i].s==3) h += "</s>"
          306  +  h += ea
          307  +  if(listitems29[i].s==1) h += "<small><i>(exp)</i></small>\n";
          308  +  if(listitems29[i].s==3) h += "&sup1\n";
          309  +  if(listitems29[i].s==4) h += "&sup2\n";
          310  +  if(listitems29[i].s==5) h += "&sup3\n";
          311  +}
          312  +document.getElementById("listtab29").innerHTML = h;
          313  +</script>
          314  +
   215    315   <blockquote>
   216    316   <table width="100%"><tr>
   217    317   <td align="left" valign="top" width="20%">
   218         -ABORT<br>
   219         -ACTION<br>
   220         -ADD<br>
   221         -AFTER<br>
   222         -ALL<br>
   223         -ALTER<br>
   224         -ANALYZE<br>
   225         -AND<br>
   226         -AS<br>
   227         -ASC<br>
   228         -ATTACH<br>
   229         -AUTOINCREMENT<br>
   230         -BEFORE<br>
   231         -BEGIN<br>
   232         -BETWEEN<br>
   233         -BY<br>
   234         -CASCADE<br>
   235         -CASE<br>
   236         -CAST<br>
   237         -CHECK<br>
   238         -COLLATE<br>
   239         -COLUMN<br>
   240         -COMMIT<br>
   241         -CONFLICT<br>
   242         -CONSTRAINT<br>
   243         -</td><td valign="top" align="left" width="20%">CREATE<br>
   244         -CROSS<br>
   245         -CURRENT_DATE<br>
   246         -CURRENT_TIME<br>
   247         -CURRENT_TIMESTAMP<br>
   248         -DATABASE<br>
   249         -DEFAULT<br>
   250         -DEFERRABLE<br>
   251         -DEFERRED<br>
   252         -DELETE<br>
   253         -DESC<br>
   254         -DETACH<br>
   255         -DISTINCT<br>
   256         -DROP<br>
   257         -EACH<br>
   258         -ELSE<br>
   259         -END<br>
   260         -ESCAPE<br>
   261         -EXCEPT<br>
   262         -EXCLUSIVE<br>
   263         -EXISTS<br>
   264         -EXPLAIN<br>
   265         -FAIL<br>
   266         -FOR<br>
   267         -FOREIGN<br>
   268         -</td><td valign="top" align="left" width="20%">FROM<br>
   269         -FULL<br>
   270         -GLOB<br>
   271         -GROUP<br>
   272         -HAVING<br>
   273         -IF<br>
   274         -IGNORE<br>
   275         -IMMEDIATE<br>
   276         -IN<br>
   277         -INDEX<br>
   278         -INDEXED<br>
   279         -INITIALLY<br>
   280         -INNER<br>
   281         -INSERT<br>
   282         -INSTEAD<br>
   283         -INTERSECT<br>
   284         -INTO<br>
   285         -IS<br>
   286         -ISNULL<br>
   287         -JOIN<br>
   288         -KEY<br>
   289         -LEFT<br>
   290         -LIKE<br>
   291         -LIMIT<br>
   292         -MATCH<br>
   293         -</td><td valign="top" align="left" width="20%">NATURAL<br>
   294         -NO<br>
   295         -NOT<br>
   296         -NOTNULL<br>
   297         -NULL<br>
   298         -OF<br>
   299         -OFFSET<br>
   300         -ON<br>
   301         -OR<br>
   302         -ORDER<br>
   303         -OUTER<br>
   304         -PLAN<br>
   305         -PRAGMA<br>
   306         -PRIMARY<br>
   307         -QUERY<br>
   308         -RAISE<br>
   309         -RECURSIVE<br>
   310         -REFERENCES<br>
   311         -REGEXP<br>
   312         -REINDEX<br>
   313         -RELEASE<br>
   314         -RENAME<br>
   315         -REPLACE<br>
   316         -RESTRICT<br>
   317         -RIGHT<br>
   318         -</td><td valign="top" align="left" width="20%">ROLLBACK<br>
   319         -ROW<br>
   320         -SAVEPOINT<br>
   321         -SELECT<br>
   322         -SET<br>
   323         -TABLE<br>
   324         -TEMP<br>
   325         -TEMPORARY<br>
   326         -THEN<br>
   327         -TO<br>
   328         -TRANSACTION<br>
   329         -TRIGGER<br>
   330         -UNION<br>
   331         -UNIQUE<br>
   332         -UPDATE<br>
   333         -USING<br>
   334         -VACUUM<br>
   335         -VALUES<br>
   336         -VIEW<br>
   337         -VIRTUAL<br>
   338         -WHEN<br>
   339         -WHERE<br>
   340         -WITH<br>
   341         -WITHOUT<br>
   342         -
   343         -</td></tr></table></blockquote>
   344    318   

Changes to Doc/Extra/Core/lang_naming.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: Database Object Name Resolution</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Database Object Name Resolution</h2>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>Database Object Name Resolution</h2></div>
   139     77   
   140     78   <p>
   141     79     In SQLite, a database object (a table, index, trigger or view) is identified
   142     80     by the name of the object and the name of the database that it resides in. 
   143     81     Database objects may reside in the main database, the temp database, or in
   144     82     an <a href="lang_attach.html">attached database</a>.
   145     83   

Changes to Doc/Extra/Core/lang_reindex.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: REINDEX</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>REINDEX</h2><p><b><a href="syntax/reindex-stmt.html">reindex-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>REINDEX</h2></div><p><b><a href="syntax/reindex-stmt.html">reindex-stmt:</a></b>
   139     77   <button id='x1137' onclick='hideorshow("x1137","x1138")'>hide</button></p>
   140         - <blockquote id='x1138'>
           78  + <div id='x1138' class='imgcontainer'>
   141     79    <img alt="syntax diagram reindex-stmt" src="images/syntax/reindex-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   
   144     82   
   145     83   <p>The REINDEX command is used to delete and recreate indices from scratch.
   146     84   This is useful when the definition of a collation sequence has changed.
   147     85   </p>
   148     86   
   149     87   <p>If the REINDEX keyword is not followed by a collation-sequence or database 

Changes to Doc/Extra/Core/lang_replace.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: REPLACE</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>REPLACE</h2>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>REPLACE</h2></div>
   139     77   
   140     78   <p>The REPLACE command is an alias for the "<a href="lang_conflict.html">INSERT OR REPLACE</a>"
   141     79   variant of the <a href="lang_insert.html">INSERT</a> command.  
   142     80   This alias is provided for compatibility other SQL database engines.  See the 
   143     81   <a href="lang_insert.html">INSERT</a> command documentation for additional information.</p>  
   144     82   
   145     83   

Changes to Doc/Extra/Core/lang_savepoint.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: SAVEPOINT</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li><a href='docs.html'>Documentation</a>
           34  +<li><a href='support.html'>Support</a>
           35  +<li><a href='prosupport.html'>Purchase</a>
           36  +</ul>
           37  +</div>
           38  +<div class="searchmenu" id="searchmenu">
           39  +<form method="GET" action="search">
           40  +<span class="desktoponly">Search for:</span> <input type="text" name="q">
           41  +<input type="submit" value="Go">
           42  +</form>
           43  +</div>
           44  +</div>
    97     45   <script>
    98         -  gMsg = "Search SQLite Docs..."
    99         -  function entersearch() {
   100         -    var q = document.getElementById("q");
   101         -    if( q.value == gMsg ) { q.value = "" }
   102         -    q.style.color = "black"
   103         -    q.style.fontStyle = "normal"
   104         -  }
   105         -  function leavesearch() {
   106         -    var q = document.getElementById("q");
   107         -    if( q.value == "" ) { 
   108         -      q.value = gMsg
   109         -      q.style.color = "#044a64"
   110         -      q.style.fontStyle = "italic"
   111         -    }
   112         -  }
   113         -  function hideorshow(btn,obj){
   114         -    var x = document.getElementById(obj);
   115         -    var b = document.getElementById(btn);
   116         -    if( x.style.display!='none' ){
   117         -      x.style.display = 'none';
   118         -      b.innerHTML='show';
   119         -    }else{
   120         -      x.style.display = '';
   121         -      b.innerHTML='hide';
   122         -    }
   123         -    return false;
   124         -  }
           46  +function toggle_div(nm) {
           47  +var w = document.getElementById(nm);
           48  +if( w.style.display=="block" ){
           49  +w.style.display = "none";
           50  +}else{
           51  +w.style.display = "block";
           52  +}
           53  +}
           54  +function div_off(nm){document.getElementById(nm).style.display="none";}
           55  +window.onbeforeunload = function(e){div_off("submenu");}
           56  +/* Disable the Search feature if we are not operating from CGI, since */
           57  +/* Search is accomplished using CGI and will not work without it. */
           58  +if( !location.origin.match(/http/) ){
           59  +document.getElementById("search_menubutton").style.display = "none";
           60  +}
           61  +/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
           62  +function hideorshow(btn,obj){
           63  +var x = document.getElementById(obj);
           64  +var b = document.getElementById(btn);
           65  +if( x.style.display!='none' ){
           66  +x.style.display = 'none';
           67  +b.innerHTML='show';
           68  +}else{
           69  +x.style.display = '';
           70  +b.innerHTML='hide';
           71  +}
           72  +return false;
           73  +}
   125     74   </script>
   126         -<td>
   127         -    <div style="padding:0 1em 0px 0;white-space:nowrap">
   128         -    <form name=f method="GET" action="https://www.sqlite.org/search">
   129         -      <input id=q name=q type=text
   130         -       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
   131         -      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
   132         -    </form>
   133         -    </div>
   134         -  </table>
   135         -
   136         -<div class=startsearch></div>
   137         -  
   138         -<h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>SAVEPOINT</h2><p><b><a href="syntax/savepoint-stmt.html">savepoint-stmt:</a></b>
           75  +</div>
           76  +<div class=nosearch><h1 align="center">SQL As Understood By SQLite</h1><p><a href="lang.html">[Top]</a></p><h2>SAVEPOINT</h2></div><p><b><a href="syntax/savepoint-stmt.html">savepoint-stmt:</a></b>
   139     77   <button id='x817' onclick='hideorshow("x817","x818")'>hide</button></p>
   140         - <blockquote id='x818'>
           78  + <div id='x818' class='imgcontainer'>
   141     79    <img alt="syntax diagram savepoint-stmt" src="images/syntax/savepoint-stmt.gif" />
   142         -</blockquote>
           80  +</div>
   143     81   <p><b><a href="syntax/release-stmt.html">release-stmt:</a></b>
   144     82   <button id='x819' onclick='hideorshow("x819","x820")'>hide</button></p>
   145         - <blockquote id='x820'>
           83  + <div id='x820' class='imgcontainer'>
   146     84    <img alt="syntax diagram release-stmt" src="images/syntax/release-stmt.gif" />
   147         -</blockquote>
           85  +</div>
   148     86   <p><b><a href="syntax/rollback-stmt.html">rollback-stmt:</a></b>
   149     87   <button id='x821' onclick='hideorshow("x821","x822")'>hide</button></p>
   150         - <blockquote id='x822'>
           88  + <div id='x822' class='imgcontainer'>
   151     89    <img alt="syntax diagram rollback-stmt" src="images/syntax/rollback-stmt.gif" />
   152         -</blockquote>
           90  +</div>
   153     91   
   154     92   
   155     93   <p> SAVEPOINTs are a method of creating transactions, similar to
   156     94   <a href="lang_transaction.html">BEGIN</a> and <a href="lang_transaction.html">COMMIT</a>, except that the SAVEPOINT and RELEASE commands
   157     95   are named and may be nested.</p>
   158     96   
   159     97   <p> The SAVEPOINT command starts a new transaction with a name.

Changes to Doc/Extra/Core/lang_select.html.

     1      1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     2      2   <html><head>
            3  +<meta name="viewport" content="width=device-width, initial-scale=1.0">
     3      4   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            5  +<link href="sqlite.css" rel="stylesheet">
     4      6   <title>SQLite Query Language: SELECT</title>
     5         -<style type="text/css">
     6         -body {
     7         -    margin: auto;
     8         -    font-family: Verdana, sans-serif;
     9         -    padding: 8px 1%;
    10         -}
    11         -
    12         -a { color: #044a64 }
    13         -a:visited { color: #734559 }
    14         -
    15         -.logo { position:absolute; margin:3px; }
    16         -.tagline {
    17         -  float:right;
    18         -  text-align:right;
    19         -  font-style:italic;
    20         -  width:300px;
    21         -  margin:12px;
    22         -  margin-top:58px;
    23         -}
    24         -
    25         -.menubar {
    26         -  clear: both;
    27         -  border-radius: 8px;
    28         -  background: #044a64;
    29         -  padding: 0px;
    30         -  margin: 0px;
    31         -  cell-spacing: 0px;
    32         -}    
    33         -.toolbar {
    34         -  text-align: center;
    35         -  line-height: 1.6em;
    36         -  margin: 0;
    37         -  padding: 0px 8px;
    38         -}
    39         -.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
    40         -.toolbar a:visited { color: white; }
    41         -.toolbar a:hover { color: #044a64; background: white; }
    42         -
    43         -.content    { margin: 5%; }
    44         -.content dt { font-weight:bold; }
    45         -.content dd { margin-bottom: 25px; margin-left:20%; }
    46         -.content ul { padding:0px; padding-left: 15px; margin:0px; }
    47         -
    48         -/* Things for "fancyformat" documents start here. */
    49         -.fancy img+p {font-style:italic}
    50         -.fancy .codeblock i { color: darkblue; }
    51         -.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
    52         -.fancy h2 { margin-left: 10px }
    53         -.fancy h3 { margin-left: 20px }
    54         -.fancy h4 { margin-left: 30px }
    55         -.fancy th {white-space:xnowrap;text-align:left;border-bottom:solid 1px #444}
    56         -.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
    57         -.fancy #toc a        { color: darkblue ; text-decoration: none }
    58         -.fancy .todo         { color: #AA3333 ; font-style : italic }
    59         -.fancy .todo:before  { content: 'TODO:' }
    60         -.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
    61         -.fancy img { display:block; }
    62         -.fancy :link:hover, .fancy :visited:hover { background: wheat }
    63         -.fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
    64         -.fancy li p { margin: 1em 0 }
    65         -.fancy blockquote { margin-left : 10ex }
    66         -/* End of "fancyformat" specific rules. */
    67         -
    68         -.yyterm {
    69         -  background: #fff;
    70         -  border: 1px solid #000;
    71         -  border-radius: 11px;
    72         -  padding-left: 4px;
    73         -  padding-right: 4px;
    74         -}
    75         -</style>
    76         -  
    77      7   </head>
    78      8   <body>
    79         -<div><!-- container div to satisfy validator -->
    80         -
            9  +<div class=nosearch>
    81     10   <a href="index.html">
    82         -<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
    83         - border="0"></a>
    84         -<div><!-- IE hack to prevent disappearing logo--></div>
    85         -<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
    86         -
    87         -<table width=100% class="menubar"><tr>
    88         -  <td width=100%>
    89         -  <div class="toolbar">
    90         -    <a href="about.html">About</a>
    91         -    <a href="docs.html">Documentation</a>
    92         -    <a href="download.html">Download</a>
    93         -    <a href="copyright.html">License</a>
    94         -    <a href="support.html">Support</a>
    95         -    <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a>
    96         -  </div>
           11  +<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
           12  +</a>
           13  +<div><!-- IE hack to prevent disappearing logo --></div>
           14  +<div class="tagline desktoponly">
           15  +Small. Fast. Reliable.<br>Choose any three.
           16  +</div>
           17  +<div class="menu mainmenu">
           18  +<ul>
           19  +<li><a href="index.html">Home</a>
           20  +<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
           21  +<li class='wideonly'><a href='about.html'>About</a>
           22  +<li class='desktoponly'><a href="docs.html">Documentation</a>
           23  +<li class='desktoponly'><a href="download.html">Download</a>
           24  +<li class='wideonly'><a href='copyright.html'>License</a>
           25  +<li class='desktoponly'><a href="support.html">Support</a>
           26  +<li class='desktoponly'><a href="prosupport.html">Purchase</a>
           27  +<li class='search' id='search_menubutton'>
           28  +<a href="javascript:void(0)" onclick='toggle_div("searchmenu")'>Search</a>
           29  +</ul>
           30  +</div>
           31  +<div class="menu submenu" id="submenu">
           32  +<ul>
           33  +<li&