34,576
社区成员
发帖
与我相关
我的任务
分享
--> 测试数据: [TY]
if object_id('[TY]') is not null drop table [TY]
create table [TY] (e_id int,e_store int,e_name varchar(4),e_sex varchar(2),e_salary int)
insert into [TY]
select 7,6,'于鹏','男',4000 union all
select 2,3,'李四','男',7000 union all
select 5,6,'王丫','女',4500 union all
select 9,1,'吴敏','女',4800
select * from [TY]
CREATE CLUSTERED INDEX e_salary ON TY(e_salary)
go
/*
e_id e_store e_name e_sex e_salary
7 6 于鹏 男 4000
5 6 王丫 女 4500
9 1 吴敏 女 4800
2 3 李四 男 7000*/