SQL – Constraints

 0    8 adatlap    sir
letöltés mp3 Nyomtatás játszik ellenőrizze magát
 
kérdés válasz
Ensures that a column cannot have a NULL value
kezdjen tanulni
NOT NULL
Ensures that all values in a column are different
kezdjen tanulni
UNIQUE
A combination of a NOT NULL and UNIQUE. Uniquely identifies each row in a table
kezdjen tanulni
PRIMARY KEY
[MySQL:] UserId auto_increment primary key
Uniquely identifies a row/record in another table
kezdjen tanulni
FOREIGN KEY
Ensures that all values in a column satisfies a specific condition
kezdjen tanulni
CHECK
Sets a default value for a column when no value is specified
kezdjen tanulni
DEFAULT
Used to create and retrieve data from the database very quickly
kezdjen tanulni
INDEX
It's like a declaration of default value that increments by 1 for each record.
kezdjen tanulni
auto_increment
SQLite: autoincrement

Kommentár közzétételéhez be kell jelentkeznie.