Posted By

indra on 10/19/10


Tagged

sqlserver


Versions (?)

Conditional Where Criteria


 / Published in: SQL
 

  1. SELECT * FROM MyTable WHERE @param IS NULL OR ColumnToFilter = @param

Report this snippet  

You need to login to post a comment.