Getting no. of rows affected after running select query in SQL Server 2005

后端 未结 4 366
轮回少年
轮回少年 2021-01-18 15:54

Below is my query

select    
@monNameStr as [MName],             
IsNull(count(c.AssignmentID),0),                
IsNull(sum(s.ACV),0),               
IsNu         


        
4条回答
  •  粉色の甜心
    2021-01-18 16:12

    select @@ROWCOUNT 
    

    (e.g. Counting the number of deleted rows in a SQL Server stored procedure )

提交回复
热议问题