create function GetCount(@A25tCode int ) returns int
as
begin
declare @interest int
if exists (select a09CodeID3 from a25_testflow where (A25tCode=@A25tCode and a09CodeID3!='')or (A25tCode=@A25tCode and a09CodeID3 is not null))
set @interest=3
if exists (select a09CodeID2 from a25_testflow where (A25tCode=@A25tCode and a09CodeID2!='') or (A25tCode=@A25tCode and a09CodeID2 is null))
set @interest=2
return @interest
end
这个是函数 看看这个是什么问题??
as
begin
declare @interest int
if exists (select a09CodeID3 from a25_testflow where (A25tCode=@A25tCode and a09CodeID3!='')or (A25tCode=@A25tCode and a09CodeID3 is not null))
set @interest=3
if exists (select a09CodeID2 from a25_testflow where (A25tCode=@A25tCode and a09CodeID2!='') or (A25tCode=@A25tCode and a09CodeID2 is null))
set @interest=2
return @interest
end
这个是函数 看看这个是什么问题??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货