SQL – Constraints

 0    8 flashcards    sir
tải về mp3 In chơi tự kiểm tra
 
câu hỏi câu trả lời
Ensures that a column cannot have a NULL value
bắt đầu học
NOT NULL
Ensures that all values in a column are different
bắt đầu học
UNIQUE
A combination of a NOT NULL and UNIQUE. Uniquely identifies each row in a table
bắt đầu học
PRIMARY KEY
[MySQL:] UserId auto_increment primary key
Uniquely identifies a row/record in another table
bắt đầu học
FOREIGN KEY
Ensures that all values in a column satisfies a specific condition
bắt đầu học
CHECK
Sets a default value for a column when no value is specified
bắt đầu học
DEFAULT
Used to create and retrieve data from the database very quickly
bắt đầu học
INDEX
It's like a declaration of default value that increments by 1 for each record.
bắt đầu học
auto_increment
SQLite: autoincrement

Bạn phải đăng nhập để đăng bình luận.