Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Dropping Primary Composite Key - response (1) by VandeBergB

$
0
0
You can't drop a Primary Index in Teradata. Your initial assertion that its a primary key but not part of the PI cannot be correct.  If you specify Primary Key in your Teradata DDL, TD will create it as a unique primary index, so your columns are indeed part of the PI. If  "Primary Key" was specified in your DDL, the only option you have is to create a new table with duplicate columns and the desired PI, insert from old to new, validate the data, drop old table and rename the new table to the old table.    

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>