これをもっと簡単に書く方法はありますか?
WHERE
(
(@IdAgent IS NULL AND IdAgent IS NULL)
OR
(@IdAgent IS NOT NULL AND IdAgent = @IdAgent)
)
これをもっと簡単に書く方法はありますか?
WHERE
(
(@IdAgent IS NULL AND IdAgent IS NULL)
OR
(@IdAgent IS NOT NULL AND IdAgent = @IdAgent)
)