标签:
create table peopleNone ( pid int primary key identity(1,1), pname varchar(32), psex varchar(32) );
insert into peopleNone(pname,psex) values(‘MR.MA‘,‘male‘); insert into peopleNone(pname,psex) values(‘MR.LU‘,‘female‘);
insert into stu_table(sname,sclass)values(‘土豪zhang‘,‘2‘); insert into stu_info(sid,sphone)values(‘2‘,‘12111‘);
select count(*) as ‘记录条数‘ from ablum; select * from ablum where aid between 1 and 3; select * from ablum where not aid = 2;
select top(4) * from ablum where aid not in (select top(4 * (2-1)) aid from ablum);
标签:
原文地址:http://www.cnblogs.com/pengjunwei/p/4229509.html