anonymous
2008-03-17 10:51:53 UTC
Basically I have a table with a bunch of names in it. These are separated. First Name, Middle Name, Last Name all are 3 different columns.
I will accept a search string from the user to search these names. I'm using a basic SELECT FROM WHERE in which I see if any of the fields are like the search string. This works perfect if there is 1 name inputted -- either a first, middle, or last.
HOWEVER....if they put in 2 names, such as John Doe, it doesn't work at all because it doesn't do multicolumn searching.
Is there an easy way to search for a full name "John Doe" where last_name column has Doe and first_name column has John?