agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: matthew@risetime.com <matthew@interaccess.com>
To: postgres <postgres@postgres.Berkeley.EDU>
Subject: trouble with "like" clause
Date: Wed, 28 Jun 1995 09:54:39 -0500 (CDT)
Message-ID: <199506281454.JAA14396@flowbee.interaccess.com> (raw)

I want to be able to do a substring case-insensitive search on a text field.

So far I have:
	SELECT * from Movies WHERE MovieName ~ "[Bb][Aa][Tt]*"

Which will make macthes with "Batman Forever".  If I instead enter in
"Forever" I should also make a matche, however, change the where clause to
"*[Ff][Oo][Rr][Ee][Vv][Ee][Rr]" failes to find a match.

What the correct syntax for that?

- mz

----
matthew zeier                     "Do what you can with what you have
  matthew@risetime.com             where you are."  -Teddy Roosevelt
......................................................................
Programmer / Online Junkie                        Ph. 708/483-8787
  "So no one told you like was gonna be this way..."

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: matthew@interaccess.com
  Subject: Re: trouble with "like" clause
  In-Reply-To: <199506281454.JAA14396@flowbee.interaccess.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox