Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は以下の疑似コードが推測することをしようとしています:
WHERE CASE WHEN @test <> '' THEN Agent = @test ELSE --no where clause END
これの正しい構造は何ですか?
またはを使用:
select * from yourTable where @test = '' OR Agent = @test
@testの代わりに null 値を指定''する場合は、次を使用する必要があります。
test
''
select * from yourTable where @test is null OR Agent = @test