Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
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 and any indexes and keys are also removed.
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;
|Discuss this page in DocCommentXchange.
Send feedback about this page using email.
|Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|