Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 errors

Author  Topic 

Zajcica
Starting Member

22 Posts

Posted - 2014-04-15 : 06:56:49
Hello!
I get those errors in initial files.
Please, does someone know the causes?

Many thanks!!!

Error starting at line 44 in command:
INSERT INTO PRICE VALUES(40)
Error report:
SQL Error: ORA-00001: unique constraint (STUDENT330.PK_PRICE) violated
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.

Error starting at line 50 in command:
INSERT INTO PUPIL VALUES('Ana')
Error report:
SQL Error: ORA-00001: unique constraint (STUDENT330.PK_PUPIL) violated
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.

Error starting at line 51 in command:
INSERT INTO PUPIL VALUES('Maja')
Error report:
SQL Error: ORA-00001: unique constraint (STUDENT330.PK_PUPIL) violated
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.
1 rows inserted.
1 rows inserted.
1 rows inserted.
1 rows inserted.
1 rows insert

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2014-04-15 : 07:04:49
As the error says Unique constraint is violated. You have inserted same value more than once

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -