brug ELLER:
select * from yourTable
where @test = '' OR Agent = @test
hvis @test kommer med null-værdi (i stedet for ''). ), skal du bruge:
select * from yourTable
where @test is null OR Agent = @test
brug ELLER:
select * from yourTable
where @test = '' OR Agent = @test
hvis @test kommer med null-værdi (i stedet for ''). ), skal du bruge:
select * from yourTable
where @test is null OR Agent = @test