SQL – Constraints

 0    8 flashcards    sir
mp3 indir Baskı oynamak kendini kontrol et
 
soru cevap
Ensures that a column cannot have a NULL value
öğrenmeye başla
NOT NULL
Ensures that all values in a column are different
öğrenmeye başla
UNIQUE
A combination of a NOT NULL and UNIQUE. Uniquely identifies each row in a table
öğrenmeye başla
PRIMARY KEY
[MySQL:] UserId auto_increment primary key
Uniquely identifies a row/record in another table
öğrenmeye başla
FOREIGN KEY
Ensures that all values in a column satisfies a specific condition
öğrenmeye başla
CHECK
Sets a default value for a column when no value is specified
öğrenmeye başla
DEFAULT
Used to create and retrieve data from the database very quickly
öğrenmeye başla
INDEX
It's like a declaration of default value that increments by 1 for each record.
öğrenmeye başla
auto_increment
SQLite: autoincrement

Yorum yapmak için giriş yapmalısınız.