Phân tích thiết kế hệ thống thông tin - Nhóm 1
Ví dụ về ràng buộc trong cơ sở dữ liệu
Tạo bảng users (Câu truy vấn thực hiện trên mariadb:10)
create table users
(
id int not null primary key auto_increment,
username char(20) not null unique,
fullName varchar(40) not null,
hashPassword char(255) not null,
check (length(username) >= 3 and length(username) <= 20)
);