我有这个存储过程:
CREATE PROCEDURE [dbo].[getCorrespondingRespcode]
@rc char(3)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @webRcCount int
SELECT webRc, COUNT(*) as webRcCount
FROM payterm.response_codes_mapping
WHERE rc = @rc GROUP BY webRc
END
如何设置@webRcCount
的值webRcCount
?我需要去做if @webRcCount = 1 print'ok'