Warning: Dropping a table in SQL means removing the table from the database and therefore losing all the data it contained.
To drop (or remove) a table in SQL you would use the following command:
DROP TABLE table_name
DROP TABLE Person
To drop the table above using a web.database cursor we would use the following code:
The drop() method of a web.database cursor looks like this:
|table [, autoExecute])|
False. If set to
Truethe command will be executed if set to
Falsethe sql command will be returned as a string. If not specified it takes the value of the
See About this document... for information on suggesting changes.