Re: Domain for numbers.

From: Brian Selzer <>
Date: Thu, 17 Jan 2008 07:59:50 -0500
Message-ID: <ejIjj.1712$>

"Naga lenoj" <> wrote in message
> Actually, i have a need to store the numbers like "AS2303",
> TS3381"(first 2 alphabets,next 3 numbers). What i want is, i have to
> assign the integrity which can check the following values,
> 23334, ASDER, SDE23, 233A4 and like this.
> If i assign as a character type domain.Then i can't check the above
> cases.
> Can anyone help me?
> I am using postgresql(for your information).

Haven't you heard of a check constraint? Received on Thu Jan 17 2008 - 13:59:50 CET

Original text of this message