Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How do i change from "Primary" column

How do i change from "Primary" column

How do i change from "Primary" column

I am using phpmyadmin version 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?

RE: How do i change from "Primary" column

Apologies. I think I may have posted this on the wrong forum? I guess it should be on MySQL forum.

RE: How do i change from "Primary" column

I didn't have Auto Increment selected for the "pk" column.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close