Results 1 to 2 of 2

Thread: insert error

  1. #1
    Join Date
    Dec 2012
    Location
    WALES
    Posts
    2

    Post Unanswered: insert error

    i am trying to insert these values
    INSERT INTO assignments VALUES ('B0000','JE000', 'T2010', '12-NOV-12', '0');
    INSERT INTO assignments VALUES ('C0000', 'EM002', 'T2010', '12-NOV-12', '0');
    INSERT INTO assignments VALUES ('D0000','PG003', 'T2010', '12-NOV-12', '0');


    but am getting this error

    Error starting at line 11 in command:
    INSERT INTO assignments VALUES ('D0000','PG003', 'T2010', '12-NOV-12', '0')
    Error report:
    SQL Error: ORA-00001: unique constraint (S12000606.SYS_C007001) 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.




    any one help?

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    do NOT insert duplicate values or remove UNIQUE index from column
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •