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
这个是函数  看看这个是什么问题??