"John Berman" <[EMAIL PROTECTED]> wrote: > > Hi. using MYSql 3.28
There is no such version of MySQL :) > > I have a surname column with a standard index and this is the column > were search are performed on, currently the filed only has the one name > i.e.: > > Surname: smith > > I want to include other column data in the search i.e. fathersname, so I > create an index on that column and in my search I > > use a statement like: ....surname = '"& globsurname & "' or fathersname > = '"& globsurname & "' > > this does work but tends to slow the thing down, Because MySQL doesn't optimize search on two different keys with OR: http://www.mysql.com/doc/en/Searching_on_two_keys.html > So Can I take the name from fathersname and include it in the Surname > field so I have say: > > Surname: smith jones > > It does not seem to work for me, maybe I need a particular separator ? > > I want to go this way as each record my have several names that I want > to be able to search on. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]