Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i change from "Primary" column

Status
Not open for further replies.

BadChough

Programmer
Dec 20, 2007
137
GB
I am using phpmyadmin version 4.1.14.6 as part of my 1&1 package. I have created a MySQL table with various columns including one called "username". When I try to insert an entry that duplicates an existing entry I get the error message "#1062 - Duplicate entry 'smiffy' for key 'username'.
Well, yes, there is the same username in a different record. But that's normal, isn't it? What do I need to do to enable the column to contain the same entry in two or more records? Is this to do with "Primary", "Unique" etc? They used to use radio buttons to select them, but with this version I can't understand how to make the changes.
I've asked 1&1 Technical folk, but they couldn't help.
Can you, please?
 
Apologies. I think I may have posted this on the wrong forum? I guess it should be on MySQL forum.
 
Sorted.
I didn't have Auto Increment selected for the "pk" column.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top