The following script returns all products which their name contains strings with prefixes of either "chain" or "full".
You must set up full text search for Product table.
SELECT ProductID, ProductName, Price
FROM Product
WHERE CONTAINS(ProductName, '"chain*" OR "full*"');
Monday, December 7, 2009
Search with CONTAINS
at 6:24 AM
Labels: SQL Server, SQL Server Tip
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment