改为存储过程create procedure AVATAR_CompareBody
  @sBodyItem varchar(10),
  @sBagItem varchar(800),
  @位置ID   varchar(2) out,
  @If成功   bit out
as
  ..............

解决方案 »

  1.   

    create function AVATAR_CompareBody(@sBodyItem varchar(10),@sBagItem varchar(800))
    returns @result table
    (
      positioin int,
      issuccess int
    )                               
    as
    begin
     ......
    end
      

  2.   

    create function aaaa(............)
     returns table
    as
       return select @a
                union all 
              select @b
      

  3.   

    返回一个表,就行.这样:
    create function f_getSubs(@id int)
    returns @re table(返回参数1 int,返回参数2 int)
    as
    begin
            ....        return
    end
    go