From: Richard Doust <rdoust@mac.com>
To: pgsql-sql@postgresql.org
Subject: Regular Expression Data Type
Date: Sat, 21 Apr 2007 12:03:18 -0400
Message-ID: <6E4919C6-83F7-4E30-A509-4AB59A4ED6C2@mac.com> (raw)
Hi.
I appreciate that I can query the database and find records that
match a regular expression.
What I'd like to be able to do is to define a field in the database
as a regular expression so that when I select, i.e.,
select price from shipping_prices where shipFromZip = '23773' and
shipToZip ~ '87927'
because shipToZip is defined as a regular expression, I'd match a row
where shipToZip held the value '879[0-9]{2,2}' or '87[0-9]*'.
Wouldn't that be cool? Does anyone know whether this is already
possible?
Thanks.
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-sql@postgresql.org
Cc: rdoust@mac.com
Subject: Re: Regular Expression Data Type
In-Reply-To: <6E4919C6-83F7-4E30-A509-4AB59A4ED6C2@mac.com>
* 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