On Fri, 19 Nov 2004 00:10:10 +0100, "J" <a@a.a> wrote:
>Jeg søger med "SELECT * FROM mytable WHERE mystring LIKE '%ord%'". Jeg havde
>først tænk om man kunne søge på "LIKE '% ord %'" men det fanger jo ikke
>start og slut (hvor slutordet også slutter med et punktum = "ord.")?
Hvis du alligevel insisterer på at søge efter hele ord, så er
FULLTEXT-indeksering sandsynligvis din ven:
http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html
==
MySQL uses a very simple parser to split text into words. A ``word''
is any sequence of true word characters (letters, digits, and
underscores), optionally separated by no more than one sequential `''
character. For example, wasn't is parsed as a single word, but wasn''t
is parsed as two words wasn and t. (And then t would be ignored as too
short according to the rules following.) Also, single quotes at the
ends of words are stripped; only embedded single quotes are retained.
==
--
- Peter Brodersen