摘要: 一、数据库表的约束 1、分类 约束名 关键字 含义 非空约束 not null 值不能为空 唯一约束 unique 值不能重复 主键约束 primary key 值非空且唯一 外间约束 foreign key 让表于表产生关系,从而保证数据的正确性 2、详细使用 非空约束 创建表时,添加非空约束 c 阅读全文
posted @ 2020-12-08 16:55 smile_or 阅读(261) 评论(0) 推荐(0) 编辑