Deleting tables
You can delete a table by sending the delete message to an instance of AbtTable.
The following examples show how to delete the PEOPLE table from the SAMPLE database. These examples do the following:
"Execute to Delete the PEOPLE table"
| table connection |
connection := AbtDbmSystem activeDatabaseConnectionWithAlias: 'SampleConSpec'.
table := connection openTableNamed: 'PEOPLE'.
table delete.
 
"Display to show that PEOPLE table no longer exists in the database"
(AbtDbmSystem activeDatabaseConnectionWithAlias: 'SampleConSpec')
allUserTableNames includes: 'PEOPLE'.
 
 
Last modified date: 01/29/2015