Re: mySQL Query and blank fields
| From: | Russ Michell | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: mySQL Query and blank fields | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13700@lists.php.net to get a copy of this message | ||
Assuming you're using MySQL - 35 seconds is all it took to find:
http://www.mysql.com/doc/P/a/Pattern_matching.html
Good luck!
Russ.
On Thu, 25 Oct 2001 14:16:40 +0300 =?iso-8859-1?Q?Niklas_Lamp=E9n?= <niklas.lampen@publico.fi>
wrote:
> How can I query for specified fields that has to contain atleast 2
> charters?
>
> Example:
> Field AAA contains '' (NULL) => No match
> Field BBB contains ' ' (one charter) => No match
> Field CCC contains 'ab' => Match
> Field DDD contains 'abcdefg' => Match
>
>
> Niklas
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
Room 1C 'The Eastings' East Road, Cambridge
e: r.j.michell@apu.ac.uk
w: www.apu.ac.uk/webteam
www.theruss.com
#-------------------------------------------------------#