我有一个带有以下主体的存储过程:
ALTER PROCEDURE dbo.sp_DeleteRoecords
@Conditions NVARCHAR(200)
AS
BEGIN
DECLARE @Query NVARCHAR(2000)
SET @Query = 'DELETE FROM Customer Where ' + @Conditions
EXEC (@Query)
END
执行后如何获取受影响的行@Query
?
我有一个带有以下主体的存储过程:
ALTER PROCEDURE dbo.sp_DeleteRoecords
@Conditions NVARCHAR(200)
AS
BEGIN
DECLARE @Query NVARCHAR(2000)
SET @Query = 'DELETE FROM Customer Where ' + @Conditions
EXEC (@Query)
END
执行后如何获取受影响的行@Query
?