赞
踩
1.掌握索引的使用方法;
2.掌握数据完整性的实现方法;
1.了解索引的作用与分类;
2.掌握索引的创建方法;
3.理解数据完整性的概念及其分类;
4.掌握各种数据完整性的实现方法;
1.创建索引
(1)create index depart_ind
on Employees(DepartmentID);
(2)create index Ad_ind
on Employees(Name,Address);
(3)create unique index Dep_ind
on Departments(DepartmentName);
(4)查看索引
show index from Employees;
show index from Departments;
(5)alter table Employees
add unique index date_ind(Birthday),
add index na_ind(Name,Sex);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。