Guest User

Untitled

a guest
Jun 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. COALESCE(filter, '%')
  2.  
  3. (
  4. Table.Column LIKE @myParameter
  5. OR
  6. @myParameter IS NULL
  7. )
  8.  
  9. ISNULL(Table.Column, @myParameter) = @myParameter
  10.  
  11. SELECT
  12. lalala
  13. WHERE 1=1
  14. and (
  15. value like '%'+@search+'%'
  16. or @search = ''
  17. )
Add Comment
Please, Sign In to add comment