public inbox for [email protected]  
help / color / mirror / Atom feed
Duplicate Key Values
2+ messages / 2 participants
[nested] [flat]

* Duplicate Key Values
@ 2025-03-05 17:35  mark bradley <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: mark bradley @ 2025-03-05 17:35 UTC (permalink / raw)
  To: [email protected] <[email protected]>

Although I did not enter them, somehow duplicate primary key values have appeared in one of my tables.  I can't remove the offending rows because the key is a foreign key in another table.

What to do?

Mark Brady,
amazon.com/author/markjbrady<https://amazon.com/author/markjbrady;


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Duplicate Key Values
@ 2025-03-05 17:50  Ron Johnson <[email protected]>
  parent: mark bradley <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Ron Johnson @ 2025-03-05 17:50 UTC (permalink / raw)
  To: [email protected] <[email protected]>

On Wed, Mar 5, 2025 at 12:36 PM mark bradley <[email protected]>
wrote:

> Although I did not enter them, somehow duplicate primary key values have
> appeared in one of my tables.
>

Is it a text/varchar column?  Has the distro been upgraded "recently", or
maybe streamed from an older Linux system to a newer Linux system?


> I can't remove the offending rows because the key is a foreign key in
> another table.
>
> What to do?
>

Are the records completely (i.e., all columns) identical?

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-03-05 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05 17:35 Duplicate Key Values mark bradley <[email protected]>
2025-03-05 17:50 ` Ron Johnson <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox