| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: inserting distinct values from another table
m.mocha_at_gmail.com wrote:
> I'm not sure why this doesn't work:
>
> insert into courses (CCode, Title, SCode)
> select distinct CCode, Title, SCode
> from TMPT05
>
> I still get the ERROR at line 1:
> ORA-00001: unique constraint (SYSTEM.SYS_C003020) violated
>
Because you already did it - tmpt05 contains
one or more values that are already in courses
-- Regards, Frank van BortelReceived on Sat May 14 2005 - 11:03:29 CDT
![]() |
![]() |