摘要: --至查询student表的第3、4行--分页查询 ★必须要用主键Sno来排除,防止重复select *from Studentselect top 2 *from Student where Sno not in(select top 2 Sno from Student)--第二页,屏蔽掉当前页... 阅读全文
posted @ 2015-04-27 16:51 Yusarin 阅读(257) 评论(0) 推荐(0) 编辑
摘要: create table 仓库表( 仓库号 varchar(50) primary key not null, 城市 varchar(50) not null, 面积 int not null,)insert into 仓库表 values ('wh1','北京',370)insert into... 阅读全文
posted @ 2015-04-27 10:43 Yusarin 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: create proc 存储过程名--输入参数;当调用存储过程时,所需要输入的数据--输出参数,从存储过程中赋值后带出数据as --存储过程内容 return 返回值goexce 返回值=存储过程名称 参数一,参数二,..,参数N--存储过程:相当于C#的函数--定义变量declare ... 阅读全文
posted @ 2015-04-27 10:42 Yusarin 阅读(290) 评论(0) 推荐(0) 编辑
摘要: create database 进出货存储过程gouse 进出货存储过程go--水果表create table Fruit( Ids varchar(50) primary key, [Name] varchar(50) not null, Price decimal(8,2), ... 阅读全文
posted @ 2015-04-27 10:41 Yusarin 阅读(415) 评论(0) 推荐(0) 编辑