Click here to Skip to main content
15,914,013 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to know a a search sql query

i have a table and there are some fields of that table.

Table1
name, age ,address1,address2,price ,
and there is also a column name Keys which is a string
and fields are age,name,delhi.computer …ect

if the user want so search something on the same table1 so he will enter a key . and it can be different in every time . and user can search the result .
Posted

1 solution

Try:
SQL
SELECT * FROM Table1 WHERE Keys LIKE '%user input%'
 
Share this answer
 
Comments
faizyab 2009 22-Jan-12 6:12am    
Thank you Sir !

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