Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating a table, the update must be ignore if it causes a duplicate primary key

Status
Not open for further replies.

njohn14

Programmer
Mar 9, 2014
2
0
0
US
Hi,

I have a Teradata table I want to update. It has 2 columns as its primary key. I want to update one primary key column.
If the update would cause there to be a duplicate primary key, I want the update to skip updating that particular record and move on to updating the next record.

Thank you!
 
Please could anyone suggest a query that would do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top