You can drop any table provided that the table:
Is not being used as an article in a publication.
Does not have any columns that are referenced by another table's foreign key.
In these cases, you must change the publication or delete the foreign key before you can successfully delete the table.
You can use either Sybase Central or Interactive SQL to perform this task.
In Sybase Central, you can perform these tasks while working with a selected table.
Connect to the UltraLite database.
In the left pane, double-click Tables.
Right-click a table and choose Delete.
Click Yes.
In Interactive SQL, deleting a table is also called dropping it. You can drop a table by executing a DROP TABLE statement.
Connect to the UltraLite database.
Execute a DROP TABLE statement.
For example, the following DROP TABLE statement deletes all the records in the Skills table and then removes the definition of the Skills table from the database:
DROP TABLE Skills; |
Like the CREATE statement, the DROP statement automatically executes a COMMIT statement before and after dropping the table. This statement makes all changes to the database since the last COMMIT or ROLLBACK permanent. The DROP statement also drops all indexes on the table.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |