List:General Discussion« Previous MessageNext Message »
From:Tonu Samuel Date:October 4 1999 2:50pm
Subject:Re: ERROR 1062: Duplicate entry '1' for key 1
View as plain text  
> > console;
> > ERROR 1062: Duplicate entry '1' for key 1
> >
> > Now how do I get rid of this duplicate key?  I just want to load the table
> > into mysql!
> 
> Are you sure you have also the ID field in your data file?
> If not so, you may have to use the FIELDS clause of LOAD DATA INFILE.

  ...or use IGNORE keyword.

-- 
+----------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___                           |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Tõnu Samuel           |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     tonu@stripped        |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Tallinn, Estonia      |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                       |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                      |
|             /*/             \*\                Developers Team |
+----------------------------------------------------------------+
Thread
ERROR 1062: Duplicate entry '1' for key 1d e l   d h a n o a4 Oct
  • Re: ERROR 1062: Duplicate entry '1' for key 1Martin Ramsch4 Oct
  • Re: ERROR 1062: Duplicate entry '1' for key 1Jan Dvorak4 Oct
  • Re: ERROR 1062: Duplicate entry '1' for key 1Jan Dvorak4 Oct
  • Re: ERROR 1062: Duplicate entry '1' for key 1Tonu Samuel4 Oct
  • Re: ERROR 1062: Duplicate entry '1' for key 1Thomas Lund4 Oct
    • Re: ERROR 1062: Duplicate entry '1' for key 1Michael Widenius6 Oct
  • Re: ERROR 1062: Duplicate entry '1' for key 1Thomas Lund7 Oct
    • Re: ERROR 1062: Duplicate entry '1' for key 1Michael Widenius7 Oct
  • Re: ERROR 1062: Duplicate entry '1' for key 1Thomas Lund7 Oct