How to alter table and add multiple columns with default value in Teradata

Scenario:

We are trying to add two columns to a table withe a default value 

\n\n


Solution:

If you want to add multiple columns you need multiple ADDs:

\n\n
ALTER TABLE TEST \nadd DWH_Change_dt date  default CURRENT_DATE, \nadd dwh_create_dt date  default current_date;\n

dan-irving

posted on

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