Microsoft Access Database Development With VBA

SQL Keywords: DROP

   

Description

The DROP keyword is used to delete an object. It can be used to remove a column from a table. The formula to use is:

ALTER TABLE TableName DROP COLUMN ColumnName;

or

ALTER TABLE TableName
DROP COLUMN ColumnName

Here is an example:

ALTER TABLE Employees DROP COLUMN DateHired;

Description

The DROP keyword can be used to delete a table. Here is an example:

DROP TABLE Employees;
     
 

Home Copyright © 2012 FunctionX, Inc. Home