I try make search for my site. Example: have field name = city, if city is empty my query looks: SELECT * FROM TABLE WHERE CITY = ALL;
I don’t know how to write: CITY = ALL correct, expression CITY is not null will be complicated because I should be remove =
Try this:
If his parameter
@SearchParamis passed to the query with aNULLvalue then it will return all the data in the table, otherwise it will search for the cities with this parameter.