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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why is my delete statement complaining of duplicates?

Status
Not open for further replies.

matpj

Technical User
Mar 28, 2001
687
GB
I have a query that is simply just a delete statement from one of my tables.

when I run it, I get the message:
"Single-row update/delete affected more than one row of a linked table. Unique index contains duplicate values"

why would a delete statement complain of this?
the table is linked from an Oracle database.
Sometimes the delete query works, but after I use an external application to insert records and then try to delete I get the error above.
 
somehow your delete operation IF successful would create duplicate records in a field that doesn't allow it...

are you sure that you are deleting the record and not updating?
Also, are you sure that you're deleting the entire record, and not just a part of the record?

maybe if you post the sql ur using...
 
my SQL is:

delete * from <table name>;

 
Here is the thing:

delete * from <table name>; works only for Access Databases
and not for any other DBMS...

So you try this:

delete from <table name>;

without a *


-VJ
 
I did also try that at one point, but it displayed the same message.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top