agora inbox for [email protected]  
help / color / mirror / Atom feed
From: [email protected] <[email protected]>
To: postgres <[email protected]>
Subject: trouble with "like" clause
Date: Wed, 28 Jun 1995 09:54:39 -0500 (CDT)
Message-ID: <[email protected]> (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
  [email protected]             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 "[email protected]".
   If this fails, send mail to "[email protected]" 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: [email protected]
  Cc: [email protected]
  Subject: Re: trouble with "like" clause
  In-Reply-To: <[email protected]>

* 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