From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: select a range of data
Date: Fri, 20 Jul 2007 15:19:52 -0400
Message-ID: <12568.1184959192@sss.pgh.pa.us> (raw)
In-Reply-To: <497741.11791.qm@web56410.mail.re3.yahoo.com>
References: <497741.11791.qm@web56410.mail.re3.yahoo.com>
Jessica Richard <rjessil@yahoo.com> writes:
> how do I select col from table where col like 'a[a-z]c24[0-9]7"?
> How do I handle the range bracket in the query?
Using LIKE, you don't. However there are two other types of
pattern-matching operators that do understand character classes:
http://www.postgresql.org/docs/8.2/static/functions-matching.html
regards, tom lane
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: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, rjessil@yahoo.com
Subject: Re: select a range of data
In-Reply-To: <12568.1184959192@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox