SQL Server 实验六 索引和数据完整性
这是一个系列,需几个文档一起看
--实验6.1索引
--1、创建索引
Create INDEX depart_ind
on Employees(departmentID)
Create INDEX ad_ind
on Employees(Name,Address)
Create UNIQUE INDEX dep_ind
on Departments(departmentName)
--2、重建索引
Alter INDEX ALL
on Employees REBULD
--3、删除索引
Drop INDEX depart_ind on Employees
--实验6.2完整性
--(1)
Create Table Employees5
(
EmployeeID char(6) not null,
Name char(10