![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 12 Dec 2002 @ 13:49:49 GMT
Why not just use
CREATE TABLE AS new tablename(
SELECT
A.OLD DATA COLUMNS
,(CASE STATEMENT HANDLING THE DEFAULT) AS NEW DATA COLUMN
FROM
OLDTABLE A
)
WITH DATA;
SAME INDEX AS OLD TABLE
Make sure not to REDISTRIBUTE the rows in the new table by maintaining the original index the rows are distributed on. Kevin Lynch
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||