0
and area.ID in (ISNULL(@area, (select ID from Areas where AreaTypeId = 3)))
我使用在狀態,以獲取有關指定區域ID信息的參數@area,但如果用戶不跨區域ID的所有信息對所有地區會出現。但我已經運行查詢時出現的錯誤消息:如何返回在SQL Server ISNULL函數不止一個值
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
請幫助我,如果你能