Altering a table
Dropping columns from a table
Dropping columns from a table
If you want to drop a column from a table, you can by creating a new table using the following steps:
- Create another table with all of the columns you want to retain
- Transfer the data from the original table to the new table with the SQL statement INSERT INTO FROM SELECT
- Drop the original table
- Use the ALTER TABLE command to change the name of the new table to the name of the original table