mercredi 25 février 2015

Check if query will cause duplicate row


I have a database with a primary key on the first column (words) I want to trim the trailing and leading ends of my data, but I get an error that this causes duplicate data


EX: ' David ' will become 'David' and that is already in the database


Is there anyway to compare what I already have in the database to my Select statement (without spaces) and remove any that will cause a duplicate row?





Aucun commentaire:

Enregistrer un commentaire