Drop a column from a table in Teradata
To remove a column from a teradata table:
ALTER TABLE table_name DROP column_name;
ALTER TABLE db.emp DROP Salary;
- You cannot drop all of the columns from a table.
- When you drop a column, Teradata Database deletes the field corresponding to the dropped column in every row in the table.
- You cannot drop indexed columns from a table without first dropping the index on those columns
Read great educational content like this and a lot more !
Members get free exclusive access to content, new courses, and discounts. Signup for a free account to write a post / comment / upvote posts. Creating an account takes less than 5 seconds and you can start earning badges & points too