SQL – Constraints

 0    8 Datenblatt    sir
mp3 downloaden Drucken spielen überprüfen
 
Frage Antworten
Ensures that a column cannot have a NULL value
Lernen beginnen
NOT NULL
Ensures that all values in a column are different
Lernen beginnen
UNIQUE
A combination of a NOT NULL and UNIQUE. Uniquely identifies each row in a table
Lernen beginnen
PRIMARY KEY
[MySQL:] UserId auto_increment primary key
Uniquely identifies a row/record in another table
Lernen beginnen
FOREIGN KEY
Ensures that all values in a column satisfies a specific condition
Lernen beginnen
CHECK
Sets a default value for a column when no value is specified
Lernen beginnen
DEFAULT
Used to create and retrieve data from the database very quickly
Lernen beginnen
INDEX
It's like a declaration of default value that increments by 1 for each record.
Lernen beginnen
auto_increment
SQLite: autoincrement

Sie müssen eingeloggt sein, um einen Kommentar zu schreiben.