If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Duplicate entry '0' for key 'PRIMARY'

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-12, 14:31
surya7482 surya7482 is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Duplicate entry '0' for key 'PRIMARY'

In my table i have 2 primary keys so i want to update the table but it giving me error in my first primary key but my 1st and 2nd row has different values except my primary key so please help me

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 02-01-12, 15:37
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
we'd be happy to help

please do a SHOW CREATE TABLE for your table

then show the query that failed
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On