大家好我有以下存储过程
SELECT DISTINCT QuestionId, AnswerId, COUNT(AnswerId) AS Cntr,
(SELECT COUNT(AnswerId) AS ttl
FROM QUserAnswers
WHERE (QuestionId = QUAM.QuestionId)) AS TtlCnt
FROM QUserAnswers AS QUAM
WHERE (QuestionId IN (@QuestionIdIn))
GROUP BY QuestionId, AnswerId
ORDER BY QuestionId
@QuestionIdI
我以格式传入' 但是,它在将 varchar 值转换为数据类型1,2,3,4,5'
时抛出错误 Conversion failed 。'1,2,3,4,5,6'
int
谁能给我一些指导来解决它