Try this:
select schdays from courses where schdays Regexp"[MWF]";
-Original Message-
From: Douglas Brantz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 2:59 PM
To: [EMAIL PROTECTED]
Subject: Please Help with Pattern Matching
I have a big problem with pattern matching;
Why
In the last episode (Jan 29), Douglas Brantz said:
> I have a big problem with pattern matching;
> Why does the first example work like this I need to find everything with
> MWF in it and I only get the 1 entry? Is there a way I can make this
> work.
>
> mysql> select schdays from courses where
Doug,
MySql is doing what it is supposed to... If you specify '%MWF%' it will only
select the values with the string literal 'MWF' in it. If you would like to
match all the rows that have either M or W or F in it, then use a query like
:
select schdays from courses where schdays LIKE "%M%" OR LI
At 14:59 -0500 1/29/02, Douglas Brantz wrote:
>I have a big problem with pattern matching;
>Why does the first example work like this I need to find everything with
>MWF in it and I only get the 1 entry? Is there a way I can make this
>work.
It's unclear what you're expecting to happen. From th