SQL – Constraints

 0    8 Fiche    sir
скачать mp3 басу ойын өзіңді тексер
 
сұрақ жауап
Ensures that a column cannot have a NULL value
оқуды бастаңыз
NOT NULL
Ensures that all values in a column are different
оқуды бастаңыз
UNIQUE
A combination of a NOT NULL and UNIQUE. Uniquely identifies each row in a table
оқуды бастаңыз
PRIMARY KEY
[MySQL:] UserId auto_increment primary key
Uniquely identifies a row/record in another table
оқуды бастаңыз
FOREIGN KEY
Ensures that all values in a column satisfies a specific condition
оқуды бастаңыз
CHECK
Sets a default value for a column when no value is specified
оқуды бастаңыз
DEFAULT
Used to create and retrieve data from the database very quickly
оқуды бастаңыз
INDEX
It's like a declaration of default value that increments by 1 for each record.
оқуды бастаңыз
auto_increment
SQLite: autoincrement

Пікір қалдыру үшін жүйеге кіру керек.