16.20 - RENAME - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24

Change a column or constraint name.
You can rename a column and add a new column to the same table using the old name for the renamed column. However, you must rename the old column before creating a new column with the previous name.

old_column_name
Current name of the column.
old_constraint_name
Current name of the constraint.
AS
Keyword that precedes new name.
TO
Keyword that precedes new name.
new_column_name
New name for the column.
new_constraint_name
New name for the constraint.