Jump to content

Recommended Posts

Hi,

 

I have installed WAMPSERVER version

 

WampServer 2.0i [07/11/09]

Includes :

- Apache 2.2.11

- MySQL 5.1.36

- PHP 5.3.0

 

I am trying to upload a .csv file onto the mysql server using the folowing command.

 

 LOAD DATA INFILE 'C:\\Documents and Settings\\Sashikanth Gurram\\Desktop\\courses\\Web_Application\\occupancy.csv'
INTO TABLE OCCUPANCY
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\r\n';

 

When I am using this command, I am getting the error as follows

 

ERROR 1062 (23000): Duplicate entry 'P12N-January-Monday-8:00' for key 'PRIMARY'

 

Can you please let me know what the problem is? I have used the same file previously in my VISTA OS and it worked fine then. I am currently using it in my XP OS and now I am facing this problem. Can you please let me know what the problem is?

 

Thanks,

Sashi

 

Link to comment
https://forums.phpfreaks.com/topic/166947-error-1062-23000/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.