Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
Primary Key [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
Primary Key


 
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 ;)


Alle Zeitangaben in WEZ +2. Es ist jetzt 19:02 Uhr.