唯一约束——unique
Ⅰ 列约束:每个字段都不能出现重复的数据
drop table if exists studentInfo;
create table studentInfo(
studentID bigint unique, //表约束
name varchar(255) unique //表约束
);
唯一约束——unique
Ⅰ 列约束:每个字段都不能出现重复的数据
drop table if exists studentInfo;
create table studentInfo(
studentID bigint unique, //表约束
name varchar(255) unique //表约束
);