Re: standard schemas for addresses, others?

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: "PostgreSQL-General-List (E-mail)" <pgsql-general(at)postgresql(dot)org>, will trillich <will(at)serensoft(dot)com>
Subject: Re: standard schemas for addresses, others?
Date: 2003-01-23 18:56:27
Message-ID: KEJE0ED6Z974B0K3252431U2V04.3e303adb@cal-lab
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Now THAT's a good idea, store a regex pattern for each country's zip code!

1/23/2003 10:01:19 AM, will trillich <will(at)serensoft(dot)com> wrote:
>
>
> insert into nations ( abbr,name,zips )
> values ( 'USA','United States of America','\\d\\d\\d\\d\\d(-\\d\\d\\d\\d)?' );
> insert into nations ( by,abbr,name,zips )
> values ( 'CANADA','Canada', '[A-Z]\\d[A-Z]\\s+\\d[A-Z]\\d' );
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Renê Salomão 2003-01-23 18:57:09 Re: Pg 7.3.1 & DBD::Pg 1.21
Previous Message Tariq Muhammad 2003-01-23 18:23:24 Re: Pg 7.3.1 & DBD::Pg 1.21