]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix typos and minor errors in lang.tcl. (CVS 1616)
authordanielk1977 <danielk1977@noemail.net>
Fri, 18 Jun 2004 11:25:21 +0000 (11:25 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Fri, 18 Jun 2004 11:25:21 +0000 (11:25 +0000)
FossilOrigin-Name: 61db159c7d1d971266e487d44e3eb5bf6ac9a8e3

manifest
manifest.uuid
www/lang.tcl

index 245104126cf6edbc897d466e79c8fbab972d643c..d2680bc606dcf28d328e9907e7d88b091e87d278 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sa\scouple\sof\sgcc\swarnings.\s(CVS\s1615)
-D 2004-06-18T06:02:35
+C Fix\stypos\sand\sminor\serrors\sin\slang.tcl.\s(CVS\s1616)
+D 2004-06-18T11:25:21
 F Makefile.in ab7b0d5118e2da97bac66be8684a1034e3500f5a
 F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -210,7 +210,7 @@ F www/faq.tcl 3a1776818d9bd973ab0c3048ec7ad6b1ad091ae5
 F www/fileformat.tcl f71a06a0d533c7df408539c64113b4adeaf29764
 F www/formatchng.tcl d1dfecedfb25e122ab513a1e0948b15cb4f0be46
 F www/index.tcl 9783a8370bf16dfc20e81f1cf14489f95408353e
-F www/lang.tcl 608a3504fe59699699ca6faf3f7142e067a9f383
+F www/lang.tcl 5193e27d5ab92ffa98427ef0fcc55d7a7c0e3ac3
 F www/lockingv3.tcl afcd22f0f063989cff2f4d57bbc38d719b4c6e75
 F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c
 F www/nulls.tcl f31330db8c978e675f5cd263067b32b822effa6f
@@ -225,7 +225,7 @@ F www/tclsqlite.tcl 19191cf2a1010eaeff74c51d83fd5f5a4d899075
 F www/vdbe.tcl 59288db1ac5c0616296b26dce071c36cb611dfe9
 F www/version3.tcl f9a4c1a12864e129f6717d22313be01d5657e3aa
 F www/whentouse.tcl a8335bce47cc2fddb07f19052cb0cb4d9129a8e4
-P 39a415eaa65964742e40b7ea4d471fa04007c6c9
-R 1f87c66183bcd20f5c4dd0f1294ea301
+P 960f55f3ecbef4581c8cb7be860023ba10de4e96
+R a54f9360f1d233838325028d874d84d6
 U danielk1977
-Z a8b87d949b3bcf0bc23b2b09209c47b5
+Z dca5f137789ab1a1b476735e27fe6318
index 29cd6772ae509579d78f38637dc2ed5d90e27b1a..a034ae53c17dd3da4cf3a1d624ffed7b9ab97fbd 100644 (file)
@@ -1 +1 @@
-960f55f3ecbef4581c8cb7be860023ba10de4e96
\ No newline at end of file
+61db159c7d1d971266e487d44e3eb5bf6ac9a8e3
\ No newline at end of file
index 1dbda9558241d4f095d4a55f276cfb68ebcdbdcb..cd902ee8449f4aea642f91c1540c39e944a7ee72 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Run this Tcl script to generate the sqlite.html file.
 #
-set rcsid {$Id: lang.tcl,v 1.69 2004/06/17 19:04:17 drh Exp $}
+set rcsid {$Id: lang.tcl,v 1.70 2004/06/18 11:25:21 danielk1977 Exp $}
 source common.tcl
 header {Query Language Understood by SQLite}
 puts {
@@ -132,7 +132,7 @@ statement.</p>
 <p>You can read from and write to an attached database and you
 can modify the schema of the attached database.  This is a new
 feature of SQLite version 3.0.  In SQLite 2.8, schema changes
-to attached databases were not allows.</p>
+to attached databases were not allowed.</p>
 
 <p>You cannot create a new table with the same name as a table in 
 an attached database, but you can attach a database which contains
@@ -345,8 +345,7 @@ all CREATE INDEX statements
 are read from the <b>sqlite_master</b> table and used to regenerate
 SQLite's internal representation of the index layout.</p>
 
-<p>Indexes cannot be added on tables in attached databases.
-Indexes are removed with the <a href="#dropindex">DROP INDEX</a> 
+<p>Indexes are removed with the <a href="#dropindex">DROP INDEX</a> 
 command.</p>
 }
 
@@ -359,7 +358,7 @@ CREATE [TEMP | TEMPORARY] TABLE <table-name> (
   [, <constraint>]*
 )
 } {sql-command} {
-CREATE [TEMP | TEMPORARY] TABLE <table-name> AS <select-statement>
+CREATE [TEMP | TEMPORARY] TABLE [<database-name>.] <table-name> AS <select-statement>
 } {column-def} {
 <name> [<type>] [[CONSTRAINT <name>] <column-constraint>]*
 } {type} {
@@ -424,6 +423,12 @@ the database is closed.  Any indices created on a temporary table
 are also temporary.  Temporary tables and indices are stored in a
 separate file distinct from the main database file.</p>
 
+<p> If a <database-name> is specified, then the table is created in 
+the named database. It is an error to specify both a <database-name>
+and the TEMP keyword, unless the <database-name> is "temp". If no
+database name is specified, and the TEMP keyword is not present,
+the table is created in the main database.</p>
+
 <p>The optional conflict-clause following each constraint
 allows the specification of an alternative default
 constraint conflict resolution algorithm for that constraint.
@@ -463,8 +468,7 @@ The text of CREATE TEMPORARY TABLE statements are stored in the
 </p>
 
 <p>Tables are removed using the <a href="#droptable">DROP TABLE</a> 
-statement.  Non-temporary tables in an attached database cannot be 
-dropped.</p>
+statement.  </p>
 }
 
 
@@ -628,7 +632,7 @@ attached database.</p>
 Section {CREATE VIEW} {createview}
 
 Syntax {sql-command} {
-CREATE [TEMP | TEMPORARY] VIEW <view-name> AS <select-statement>
+CREATE [TEMP | TEMPORARY] VIEW [<database-name>.] <view-name> AS <select-statement>
 }
 
 puts {
@@ -638,6 +642,17 @@ statement.  Once the view is created, it can be used in the FROM clause
 of another SELECT in place of a table name.
 </p>
 
+<p>If the "TEMP" or "TEMPORARY" keyword occurs in between "CREATE"
+and "TABLE" then the table that is created is only visible to the
+process that opened the database and is automatically deleted when
+the database is closed.</p>
+
+<p> If a <database-name> is specified, then the view is created in 
+the named database. It is an error to specify both a <database-name>
+and the TEMP keyword, unless the <database-name> is "temp". If no
+database name is specified, and the TEMP keyword is not present,
+the table is created in the main database.</p>
+
 <p>You cannot COPY, DELETE, INSERT or UPDATE a view.  Views are read-only 
 in SQLite.  However, in many cases you can use a <a href="#trigger">
 TRIGGER</a> on the view to accomplish the same thing.  Views are removed 
@@ -705,7 +720,7 @@ command.</p>
 Section {DROP TABLE} droptable
 
 Syntax {sql-command} {
-DROP TABLE <table-name>
+DROP TABLE [<database-name>.] <table-name>
 }
 
 puts {
@@ -1141,10 +1156,10 @@ It is given its own section in this document because it is not
 part of standard SQL and therefore might not be familiar.</p>
 
 <p>The syntax for the ON CONFLICT clause is as shown above for
-the CREATE TABLE, CREATE INDEX, and BEGIN TRANSACTION commands.
-For the COPY, INSERT, and UPDATE commands, the keywords
-"ON CONFLICT" are replaced by "OR", to make the syntax seem more
-natural.  But the meaning of the clause is the same either way.</p>
+the CREATE TABLE and CREATE INDEX commands.  For the COPY, INSERT, and
+UPDATE commands, the keywords "ON CONFLICT" are replaced by "OR", to make
+the syntax seem more natural.  But the meaning of the clause is the same
+either way.</p>
 
 <p>The ON CONFLICT clause specifies an algorithm used to resolve
 constraint conflicts.  There are five choices: ROLLBACK, ABORT,
@@ -1195,33 +1210,8 @@ value, then the ABORT algorithm is used.</p>
 statisfy a constraint, it does not invoke delete triggers on those
 rows.  But that may change in a future release.</p>
 
-</dd>
-</dl>
-
-<p>
-The conflict resolution algorithm can be specified in three places,
-in order from lowest to highest precedence:
-</p>
-
-<ol>
-<li><p>
-On individual constraints within a CREATE TABLE or CREATE INDEX
-statement.
-</p></li>
-
-<li><p>
-On a BEGIN TRANSACTION command.
-</p></li>
-
-<li><p>
-In the OR clause of a COPY, INSERT, or UPDATE command.
-</p></li>
-</ol>
-
 <p>The algorithm specified in the OR clause of a COPY, INSERT, or UPDATE
-overrides any algorithm specified on the BEGIN TRANSACTION command and
-the algorithm specified on the BEGIN TRANSACTION command overrides the
-algorithm specified in the a CREATE TABLE or CREATE INDEX.
+overrides any algorithm specified in a CREATE TABLE or CREATE INDEX.
 If no algorithm is specified anywhere, the ABORT algorithm is used.</p>
 
 }
@@ -1605,10 +1595,11 @@ inserts and deletes can leave the database file structure fragmented,
 which slows down disk access to the database contents.
 
 The VACUUM command cleans
-the database by copying its contents to a temporary database file and 
+the main database by copying its contents to a temporary database file and 
 reloading the original database file from the copy.  This eliminates 
 free pages,  aligns table data to be contiguous, and otherwise cleans 
-up the database file structure.</p>
+up the database file structure. It is not possible to perform the same
+process on an attached database file.</p>
 
 <p>This command will fail if there is an active transaction.  This 
 command has no effect on an in-memory database.</p>