Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Count of sucessfully processed rows
The easiest way would be to:
That will still fail to enable the constraint, but in the process of failing, it will have populated the exceptions table with the ROWIDs of every row in EMP which duplicates. You then do:
select * from emp where rowid in (select row_id from exceptions);
Now you see the EMP data itself that duplicates. (Notice, btw, the difference between the first "rowid" (without an underscore) and "row_id" (with)).
You still have to sort out the duplicates, yourself, manually. But at least you know which are the problematic rows.
Regards
HJR
"Shankaran" <asshankaran_at_hotmail.com> wrote in message
news:795fe36c.0301240516.68a6e453_at_posting.google.com...
> This is my problem.
> I am updating the empid column of the table emp
> as
> update table emp
> set empid = new_empid;
> somewhere it comes up with the primary key constraint error.
> Can I narrow down on the problematic row JUST by looking at the error
> variables populated by Oracle server.
> (I dont want to write a query to find the problematic row. Is there
> any way out without writing a query to findout the problematic row)
>
> Kindly help me out...
Received on Fri Jan 24 2003 - 08:32:56 CST