In my database, a simple one-column table containing unique company names has a ghost record. It shows a value there, but attempting to use it as a foreign key gives a key constraint, and when I try to remove it directly from the table view, I get an error stating the record appears to have been removed already. But then when I refresh, it's still there.
If I execute a SELECT query on it, I see it. If I try an UPDATE or DELETE query on it, it says it has executed it successfully, but nothing has actually happened. If I try to create a duplicate record with the same name, the database accepts it despite the column being primary key (and that duplicate record then works fine and allows itself to be removed again).
For all purposes, the record in question isn't there, except that I do see it and it defies removal. How do I get rid of it?
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)
If I execute a SELECT query on it, I see it. If I try an UPDATE or DELETE query on it, it says it has executed it successfully, but nothing has actually happened. If I try to create a duplicate record with the same name, the database accepts it despite the column being primary key (and that duplicate record then works fine and allows itself to be removed again).
For all purposes, the record in question isn't there, except that I do see it and it defies removal. How do I get rid of it?
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)