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
Enjoy great content like this and a lot more !
Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds