declare @i int
if (select username from q3) = 'wendy'
begin
set @i = 1
print cast(@i as varchar)
end
当我执行上面的代码时,我收到一条错误
Subquery returned more than 1 value. This is not permitted when the subquery
follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
有人可以帮我解决这个问题吗?我知道这意味着什么,但我真的不知道如何解决它。我已经尝试过寻找解决方案,但我似乎无法找到与我的问题相关的任何内容。提前谢谢!