SQL – Constraints

 0    8 informačný list    sir
stiahnuť mp3 vytlačiť hrať Skontrolujte sa
 
otázka Odpoveď
Ensures that a column cannot have a NULL value
začať sa učiť
NOT NULL
Ensures that all values in a column are different
začať sa učiť
UNIQUE
A combination of a NOT NULL and UNIQUE. Uniquely identifies each row in a table
začať sa učiť
PRIMARY KEY
[MySQL:] UserId auto_increment primary key
Uniquely identifies a row/record in another table
začať sa učiť
FOREIGN KEY
Ensures that all values in a column satisfies a specific condition
začať sa učiť
CHECK
Sets a default value for a column when no value is specified
začať sa učiť
DEFAULT
Used to create and retrieve data from the database very quickly
začať sa učiť
INDEX
It's like a declaration of default value that increments by 1 for each record.
začať sa učiť
auto_increment
SQLite: autoincrement

Ak chcete pridať komentár, musíte byť prihlásený.