From: drh
" } +Section COPY copy + +Syntax {sql-statement} { +COPY$text
The CREATE INDEX command consists of the keywords "CREATE INDEX" followed +by the name of the new index, the keyword "ON" the name of a previously +created table that is to be indexed, and a parenthesized list of names of +columns in the table that are used for the index key. +Each column name can be followed by one of the "ASC" or "DESC" keywords +to indicate sort order, but since GDBM does not implement ordered keys, +these keywords are ignored.
+ +There are no arbitrary limits on the number of indices that can be +attached to a single table, nor on the number of columns in an index.
+ +The exact text +of each CREATE INDEX statement is stored in the sqlite_master +table. Everytime the database is opened, all CREATE INDEX statements +are read from the sqlite_master table and used to regenerate +SQLite's internal representation of the index layout.
+} + + Section {CREATE TABLE} {createtable} Syntax {sql-command} { @@ -140,34 +179,28 @@ are read from the sqlite_master table and used to regenerate SQLite's internal representation of the table layout. } -Section {CREATE INDEX} createindex +Section DELETE delete Syntax {sql-statement} { -CREATE INDEXThe CREATE INDEX command consists of the keywords "CREATE INDEX" followed -by the name of the new index, the keyword "ON" the name of a previously -created table that is to be indexed, and a parenthesized list of names of -columns in the table that are used for the index key. -Each column name can be followed by one of the "ASC" or "DESC" keywords -to indicate sort order, but since GDBM does not implement ordered keys, -these keywords are ignored.
+ +} -There are no arbitrary limits on the number of indices that can be -attached to a single table, nor on the number of columns in an index.
+Section {DROP INDEX} dropindex -The exact text -of each CREATE INDEX statement is stored in the sqlite_master -table. Everytime the database is opened, all CREATE INDEX statements -are read from the sqlite_master table and used to regenerate -SQLite's internal representation of the index layout.
+Syntax {sql-command} { +DROP INDEXThe DROP INDEX statement consists of the keywords "DROP INDEX" followed +by the name of the index. The index named is completely removed from +the disk. The only way to recover the index is to reenter the +appropriate CREATE INDEX command.
+} Section {DROP TABLE} droptable @@ -181,17 +214,92 @@ by the name of the table. The table named is completely removed from the disk. The table can not be recovered. All indices associated with the table are also reversibly deleted.} -Section {DROP INDEX} dropindex +Section EXPLAIN explain -Syntax {sql-command} { -DROP INDEX