13 May 18 · npack ·       Add to Favorites  

Drop a column from a table in Teradata

To remove a column from a teradata table:

Syntax:

ALTER TABLE table_name DROP column_name;

Example:

ALTER TABLE db.emp DROP Salary;


Limitations:

  • 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

npack

posted on 13 May 18

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

Copied