RENAME - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
spp1591731285373.ditamap
dita:ditavalPath
spp1591731285373.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

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.