archie
25-03-2002, 18:39
Kann mir bitte jemand sagen, wann und wozu man unter MySQL
PRIMARY KEY anwedet, im Welchenm Fallbraucht man sowas?
PRIMARY KEY anwedet, im Welchenm Fallbraucht man sowas?
| Zurück zum Forum |
|
Archiv verlassen und diese Seite im Standarddesign anzeigen : archie 25-03-2002, 18:39 Kann mir bitte jemand sagen, wann und wozu man unter MySQL PRIMARY KEY anwedet, im Welchenm Fallbraucht man sowas? MoRtAlAn 25-03-2002, 19:02 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 archie 25-03-2002, 19:43 OK Danke! Ich verstehe es langsamm ;) |
|