Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Error 1062

forums forums SQLyog Using SQLyog Error 1062

  • This topic is empty.
Viewing 7 reply threads
  • Author
    Posts
    • #16395
      Ritesh
      Member

      SQLyog logs all query(s) that it executes in the History Tab.

      Can you see '127' being inserted twice?

    • #16396
      Shadow
      Member

      Are you sure that your PK field is of integer type? Isn't it accidentally a signed tinyint? The error message may be caused by overflow…

    • #16397
      qwerty007
      Member

      I am getting the exact same error

      Error No. 1062

      Duplicate Entry '2' for key 1

      There is no duplicate. I only have 2 entries in this table. They are both numbers.

      21197

      21385

      That's it.

      I can't find a reason for this error.

    • #16398
      Ritesh
      Member

      Can you send me your table structure and sample data?

      Information about SQLyog and MySQL versions will be helpful.

    • #16399
      qwerty007
      Member

      I figured it out. (Tried to post yesterday but the site seemed to be down)

      My field length was only set to 1, so MySQL was only taking the first number (in this case '2') when I was trying to manually enter data. My mistake.

    • #16400
      Ritesh
      Member

      Sorry for the inconvenience caused but our web-server went down for some time 🙁

    • #16401
      Shadow
      Member

      This might explain terrym's problem as well.

    • #16402
      terrym
      Member

      Yes!

      That's the problem. My id field was a tinyint, which only allows numbers up to 127.

      At least we won't get that wrong again?

      Thanks

      Terry

Viewing 7 reply threads
  • You must be logged in to reply to this topic.