I am currently using this query to fix misspellings in my searches table:
[FONT=Menlo]UPDATE searches SET keyword = REPLACECOLOR=#000000 WHERE keyword LIKE ‘%lavendar%’;[/FONT][/COLOR]
Many times I run into problems because of duplicate entries. This is because a user will search using the wrong spelling, and then they will search again with the correct spelling. I know how to use UPDATE IGNORE, to skip those problems but is there a way to do something like UPDATE DELETE? I would like to fix the spelling error, but if it causes a duplicate entry, then I would just like that row to be deleted.
Thanks!