[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-sql
Subject: Re: [SQL] User defined types -- Social Security number...
From: Bruce Momjian <pgman () candle ! pha ! pa ! us>
Date: 2004-02-28 16:18:53
Message-ID: 200402281618.i1SGIrp28893 () candle ! pha ! pa ! us
[Download RAW message or body]
Josh Berkus wrote:
> Greg,
>
> > Anyone have a good pre-built user-defined type definition for creating /
> > maintaining / manipulating a SSN ... where valid chars are in the range
> > 000-00-0000 through 999-99-9999.
>
> Actually, the range is more narrowly defined than that. I'm not sure of the
> exact rules, but you will never see a leading 0 or a -00- in an SSN.
Actually I know someone who's SSN starts as 003.
Agreed on the DOMAIN suggestion.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic