Microsoft
Software
Hardware
Network
Question : Search through multiple cols
Hello,
I have a form with text field, and a submit button. Its a search field.
My Tables has 3 cols.
id, name, descrip.
When user submit the form I want to search through multiple cols,
something like this,
SELECT * FROM table WHERE name LIKE %value% OR descrip LIKE %value%
above query wont work, but is there any method to get this done?
Answer : Search through multiple cols
SELECT * FROM table WHERE name LIKE '%value%' OR descrip LIKE '%value%'
Doesn't work?
Random Solutions
Setting up my first database driven web site
SQL Scripts in a .bat file?
How do I fix a calculation problem in Microsoft Visual 2008?
jquery click functions not getting attached to dynamic div elements (a href)
HTTP Error 404.3 on IIS 7.0
How can I convert a custom control that calls User32 and Shell32 to work on Mono?
Java web service accesing error
Inserting another drawing
Cron Error with 1 and 1 dedicated server - linux
To change asni_padding setting of a column.