约束:对数据进行限定,保证数据正确性,有效性,完整性 分类: 1.主键约束 primary key 主键的自动增长 2.非空约束 not null 3.唯一约束 unique 4.外键约束 foreign key