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 ISNULL(@Param1,Field1)=Field1 and ISNULL(@Param2,Field2)=Field2