Archives of the TeradataForum
Message Posted: Mon, 26 Sep 2005 @ 11:03:24 GMT
Naveen Ram Prasanna Kambhoji wrote:
In theory a PK (value and definition) should never change, but in reality it does. If you use a dumb artifical PK (doesn't have to be a sequence) you'll probably never encounter that problem.
But this is about Primary *Key* not Primary *Index*, you should always chosse a PI based on access/joins/distribution.
Btw, in other DBMSes this might be a good idea, because they don't like to join on multiple columns or varchars...
If the sequence is the PI then not.
Because it's a rumour and rumours tend to be wrong :-)
create new table -> insert/select -> drop old table -> rename
That's the only way, you'll need twice the perm space (old + new) and enough spool (even if PI is the same and it's a "ins new sel * from old")
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|