Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6645479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:17:32+00:00 2026-05-26T00:17:32+00:00

In php myadmin it says it is no use in defining auto increment column

  • 0

In php myadmin it says it is no use in defining auto increment column as primary key for table. you can remove primary key constrain. (since both do the same job like).

Is this true. should I remove primary key constrain?

won’t it good to have a primary key column for where clause rather than auto increment column

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:17:33+00:00Added an answer on May 26, 2026 at 12:17 am

    Keep The PK constraint. It will save you from some trouble:

    • if you intend to use some frameworks which check for this constraint to determine which columns are used as PK. They will be lost or require additional configuration if the constraint is not present.
    • When you’ll use DB design software it will work better if your DB is properly designed.
    • When you’ll have to change your DB software (upgrade or change brands) You will be happy to have all the constraints properly defined in your SQL statements.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using PHPMyAdmin and I've got a MySQL table column called timestamp. The type
Using phpMyAdmin: can one alter a table's schema by inserting new columns, as one
I want to make sure my php code and my website does not use
I generated the below query for php using PHP-MYADMIN, My question is how to
I'm running php vs. 4.1.14 on yahoo with phpMyAdmin. it says the file is
My app no longer connects to its DB and phpmyadmin says #1129 - Host
I have integrated CKeditor with my admin panel (php) I have writtien a function
In phpMyAdmin I have a char(32) column that has no default value(ie. Default: None).
When using phpMyAdmin or the MySQL GUI Tools, whenever I create an InnoDB table,
When I use phpMyAdmin to see my online tables, it uses collation method latin_swedish_ce.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.