in
caseステートメントに基づいてコマンドを使用することは可能ですか
私はこのようなことを試しました
@Id int
Select *
From Table
Where StatusId in( case when Id =1 then 1 else 1,3 end)
と
Select *
From Table
Where StatusId in case when Id =1 then (1) else (1,3) end
何か案は!!