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带有空值(而不是''),则必须使用:
test
''
select * from yourTable where @test is null OR Agent = @test
我有一些用于评级系统的 CSS 精灵:http: //i.imgur.com/qeb2b.png
加载拇指时
<