一个简单的存储过程

时间:2014-08-13 14:21:26   收藏:0   阅读:247
create procedure proc_pay
(@maxmoney int,
@minmoney int,
@paymonth nvarchar(20))
as 
begin
	select 储值方式,sum(台币) from 储值分析 where uid in
 (select uid from 储值分析 where Paymonth=@paymonth group by uid having sum(台币) between @minmoney and @maxmoney) group by 储值方式 
 
end

 就是C#的方法嘛

一个简单的存储过程,布布扣,bubuko.com

原文:http://www.cnblogs.com/zhanying/p/3909841.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!