Use this statement to remove a table, and all its data, from a database.
DROP TABLE table-name
The DROP TABLE statement drops the specified table from the database. All data in the table is also removed, as well as any indexes and keys.
UltraLite does not process requests or queries referencing the table, or its indexes, while the DROP TABLE statement is being processed. Furthermore, you cannot execute DROP TABLE when there are active queries or uncommitted transactions.
For UltraLite.NET, you cannot execute this statement unless you also call the Dispose method for all data objects (for example, ULDataReader). See Dispose method.
Statements are not released if schema changes are initiated at the same time. See Schema changes with DDL statements.
The following statement deletes a fictitious table, EmployeeBenefits, from the database:
DROP TABLE EmployeeBenefits; |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |