- SELECT CustomerID, ..., Fax From Customers WHERE City = @City
you can modify the SQL statement to search for data that contains the search string:
- SELECT CustomerID, ..., Fax From Customers WHERE City LIKE '%' + @City + '%'
If you search for "lon", then customers from "london" and "barcelona" will be returned. The % symbol represents a wildcard character in SQL.
No comments:
Post a Comment