正常的时候 select id from table where a=1 这个时候条件我可以用 a=@a来传递参数 可如果a字段又有值又有空值的话我要怎么传这个参数?
就是 条件可能是 a=1 或是 a is null