JimStewart
Member
- Joined
- Oct 8, 2010
- Messages
- 19
- Programming Experience
- Beginner
What is the Proper Way to use wildcards in an SQL query
Currently what I have is:
I have used th '&' symbol the '+' symbol and no symbol. I keep getting incompatiblilty warnings for use with TEXT columns
Thanks in advance
JimStewart
Currently what I have is:
VB.NET:
SELECT ID, ProductID, Manufacturer, ProductMainCatagory, ProductSubCatagory, ProductSubSubCatagory, ProductName, PicturePath, ProductDesc, ProductRetailPrice,
Deleted, DateModified
FROM Products
WHERE (ProductID LIKE '%'+@search+'%') OR
(Manufacturer LIKE '%'+@search+'%') OR
(ProductName LIKE '%'+@search+'%')
I have used th '&' symbol the '+' symbol and no symbol. I keep getting incompatiblilty warnings for use with TEXT columns
Thanks in advance
JimStewart