create proc Vote_Update
(
@vid int
)
as
set nocount on
declare @vpercent decimal(5,2)
set @vpercent=0.00
select @vpercent=Convert(int,(select sum(vote_num) from vote))
/
Convert(int
,(select top 1 vote_num from vote
where vote_id=@vid))
print @vpercent
set nocount off
(
@vid int
)
as
set nocount on
declare @vpercent decimal(5,2)
set @vpercent=0.00
select @vpercent=Convert(int,(select sum(vote_num) from vote))
/
Convert(int
,(select top 1 vote_num from vote
where vote_id=@vid))
print @vpercent
set nocount off
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货