17.10 - Example: Making Composite Changes to a Column: NOT NULL to NULL - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

Composite changes to columns that involve changing the NOT NULL attribute to NULL are not valid. For example, the following cannot be done:

     ALTER TABLE abc ADD column_2 TITLE 'newname' NULL;

To make these changes, you must perform two separate ALTER TABLE requests:

     ALTER TABLE abc ADD column_2 TITLE 'newname';
     ALTER TABLE abc ADD column_2 NULL;