Primary Key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Primary Key

    Kann mir bitte jemand sagen, wann und wozu man unter MySQL
    PRIMARY KEY anwedet, im Welchenm Fallbraucht man sowas?

  • #2
    Aus der MySQL-Doku:

    A PRIMARY KEY is a unique KEY with the extra constraint that all key columns must be defined as NOT NULL. In MySQL the key is named PRIMARY. A table can have only one PRIMARY KEY. If you don't have a PRIMARY KEY and some applications ask for the PRIMARY KEY in your tables, MySQL will return the first UNIQUE key, which doesn't have any NULL columns, as the PRIMARY KEY.

    Heißt:
    Primärschlüssel, ein eindeutiger Schlüssel (Auto_increment), mit dem Datensätze eindeutig identifiziert werden können.

    gruss

    Comment


    • #3
      OK Danke!
      Ich verstehe es langsamm

      Comment

      Working...
      X