MySQL 约束 结果集合并

约束:
默认值default
非空not null
唯一unique
主键primary key
auto_increment
外键foreign key

主表,从表

-- 单行注释
/*
多行注释
结果集合并
1. 要求被合并的表中,列的类型和列数相同
2. UNION,去除重复行
3. UNION ALL, 不去除重复行

猜你喜欢

转载自blog.csdn.net/weixin_42100098/article/details/80149892