उपयोग करें या:
select * from yourTable
where @test = '' OR Agent = @test
अगर @test शून्य मान के साथ आ रहा है ('' . के बजाय ), आपको अवश्य उपयोग करना चाहिए:
select * from yourTable
where @test is null OR Agent = @test
उपयोग करें या:
select * from yourTable
where @test = '' OR Agent = @test
अगर @test शून्य मान के साथ आ रहा है ('' . के बजाय ), आपको अवश्य उपयोग करना चाहिए:
select * from yourTable
where @test is null OR Agent = @test