我有一个表 员工在sql server 2008中检查参数为空或不为空?
Eno ename image
1 aaa a.jpg
2 bbb b.jpg
3 ccc null
4 ddd null
我的参数传递给查询
declare @a varchar(10)
select * from employee where ?
?如果我通过图像不是零的意思是我希望所有员工的细节谁有图像其他明智
我希望图像是空的员工细节谁没有图像。