SQL – Constraints

 0    8 kartičky    sir
stáhnout mp3 Vytisknout hrát zkontrolovat se
 
otázka odpověď
Ensures that a column cannot have a NULL value
začněte se učit
NOT NULL
Ensures that all values in a column are different
začněte se učit
UNIQUE
A combination of a NOT NULL and UNIQUE. Uniquely identifies each row in a table
začněte se učit
PRIMARY KEY
[MySQL:] UserId auto_increment primary key
Uniquely identifies a row/record in another table
začněte se učit
FOREIGN KEY
Ensures that all values in a column satisfies a specific condition
začněte se učit
CHECK
Sets a default value for a column when no value is specified
začněte se učit
DEFAULT
Used to create and retrieve data from the database very quickly
začněte se učit
INDEX
It's like a declaration of default value that increments by 1 for each record.
začněte se učit
auto_increment
SQLite: autoincrement

Chcete-li přidat komentář, musíte se přihlásit.