Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004

    Unanswered: Auto_Increment keys & primary keys

    Hello everybody

    I would like to know if an auto_increment key is necessarily a primary or secondary key of a relation (table)? And by the way how can I define a secondary key in MySQL?

    thx, in advance

    George Papadopoulos

  2. #2
    Join Date
    May 2004
    NJ USA
    A field created with the auto_increment feature must also be set as a Primary key.

    To create a secondary key just use the CREATE [UNIQUE] INDEX syntax...
    Database Administrator

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts