我想作一个搜索稿,我可以在这里寻求多字,但文字却在所有各行中找到,而不是一个特定的行文。 例如。
__________________________ ________ |Cheese | | Search | —————————————————————————— ————————
接着,我发表了一份介绍:
SELECT * FROM table WHERE column1 = "$value" OR column2 = "$value" OR column3 = "$value" ... ;
这将显示“车臣”一词出现在任何一栏中的结果。 事情是,我希望人们能够寻求“友好”和“礼让”,但我需要把言词分开,寻找这样的东西:
SELECT * FROM table WHERE column1 = "$value" OR column2 = "$value" OR column3 = "$value" ... AND column1 = "$value2" OR column2 = "$value2" OR column3 = "$value2" ... ;
The thing is that I really don t know how to do this. neither the word separation or how to find the words i the SQL database.. Also I don t know how to search for the words where "Cheese" is a part of.. like "Cheesecake"..
如果有人想如何做到这一点,请帮助我。
谢谢。