Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 244.4k

query to search related data in database

Aug 4 2016 7:12 AM
 i will use like this:
declare
@SearchString varchar(200) 
 
select @ from tbl_Products 
WHERE ProductName Like '%'+@SearchString+'%' or ProductCode Like '%'+@SearchString+'%'
 
i will get result like :
 
products name: Blue New Product
 
 
and search time : input text like: new blue then it not find any result  i want when input this keyword then i got this product name
 
so please solve it..
thanks.. 

Answers (4)