一. 简单案情陈述
CASE WHEN @SPOID is not null THEN
(176)
ELSE
(SELECT designationID from setupdesignations where reportto = 99)
END
When else clause of this statement execute it gives me the following error
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
我在<代码>中使用这一发言。 缩略语 我预计,在其他情况下,会有多重结果,但给我上述错误。 如果我删除案件陈述,在询问中执行其他部分,则取得预期结果。