create procedure proc_pay (@maxmoney int, @minmoney int, @paymonth nvarchar(20)) as begin select 储值方式,sum(台币) from 储值分析 where uid in (select uid from 储值分析 where [email protected] group by uid having sum(台币) between @minmoney and @maxmoney) group by 储值方式 end
就是C#的方法嘛
一个简单的存储过程
时间: 2024-10-30 14:30:31