You can drop any table provided that the table:
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.
To delete an UltraLite table (Sybase Central)
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.
To delete an UltraLite table (Interactive SQL)
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.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |