Add support for DROP TABLE IF EXISTS. (CVS 2843)

FossilOrigin-Name: a4c547de83d8b27f06a58f9e530a7c983ec1dc3a
This commit is contained in:
drh
2005-12-29 01:11:36 +00:00
parent ab8aa68325
commit a073384f08
9 changed files with 56 additions and 35 deletions
+5 -2
View File
@@ -1,7 +1,7 @@
#
# Run this Tcl script to generate the lang-*.html files.
#
set rcsid {$Id: lang.tcl,v 1.102 2005/11/14 11:51:46 drh Exp $}
set rcsid {$Id: lang.tcl,v 1.103 2005/12/29 01:11:37 drh Exp $}
source common.tcl
if {[llength $argv]>0} {
@@ -875,7 +875,7 @@ will be freed automatically by DROP INDEX.</p>
Section {DROP TABLE} droptable
Syntax {sql-command} {
DROP TABLE [<database-name>.] <table-name>
DROP TABLE [IF EXISTS] [<database-name>.] <table-name>
}
puts {
@@ -891,6 +891,9 @@ later INSERTs. To
remove free space in the database, use the <a href="#vacuum">VACUUM</a>
command. If AUTOVACUUM mode is enabled for a database then space
will be freed automatically by DROP TABLE.</p>
<p>The optional IF EXISTS clause suppresses the error that would normally
result if the table does not exist.</p>
}