约束:
1.primary key
2.foreign key
3.check
4.unique
5.not null
索引
1.单列索引
create index 索引名 on 表名(列名)
2.复合索引
create index 索引名 on 表名(列名1,列名2)
1.primary key
2.foreign key
3.check
4.unique
5.not null
索引
1.单列索引
create index 索引名 on 表名(列名)
2.复合索引
create index 索引名 on 表名(列名1,列名2)