Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi...
i have tried to perform the search operation...
but i want to know how to search a particular name from multiple keywords...
is it possible?
can u give me an suggestion to do this operation.?
Posted
Comments
Sara Dark 16-Dec-11 8:21am    
create a table with field that references the id of the name and a field to put the keyword in and and id field and do your search using inner join

Create a temporary table that contains the search words, and then do a join on the table/column(s) you're searching.
 
Share this answer
 
You could always do this search at the query level.
Just search for a the names within the Where using an IN clause.

select * from table where name in (name1,name2)
 
Share this answer
 
hi,

you can also search using,

SQL
select * from tablename where columnname in (%value1%,%value2%,....);


thanks
-amit.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900