Sql 里面 用select 查询数据之后 output不能获得返回值。
有知道的大侠提示一下,QQQ.

解决方案 »

  1.   

    把代码贴出来。http://blog.csdn.net/szstephenzhou
      

  2.   


    可以啊:
    如:
    DELETE 成绩 
    OUTPUT DELETED.*;
    (11 行受影响)
      

  3.   

    若是执行存储过程则需要定义两个地方的output
    1、存储过程的输出参数需要定义outpu
    2、exec dbo.procedureName  @args output  
      

  4.   


    declare @str nvarchar(max)
    declare @i int
    exec dbo.usp_hello @str OUT,@i OUT
    select @str
    select @i