dbTalk Databases Forums  

Domain for numbers.

comp.databases comp.databases


Discuss Domain for numbers. in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Naga
 
Posts: n/a

Default Domain for numbers. - 01-17-2008 , 07:25 AM






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).

Reply With Quote
  #2  
Old   
Lennart
 
Posts: n/a

Default Re: Domain for numbers. - 01-17-2008 , 02:15 PM






On Jan 17, 1:25 pm, Naga <nagale... (AT) gmail (DOT) com> wrote:
Quote:
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).

http://joseph.randomnetworks.com/arc...r-expressions/

HTH
/Lennart


Reply With Quote
  #3  
Old   
Lennart
 
Posts: n/a

Default Re: Domain for numbers. - 01-17-2008 , 02:15 PM



On Jan 17, 1:25 pm, Naga <nagale... (AT) gmail (DOT) com> wrote:
Quote:
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).

http://joseph.randomnetworks.com/arc...r-expressions/

HTH
/Lennart


Reply With Quote
  #4  
Old   
Lennart
 
Posts: n/a

Default Re: Domain for numbers. - 01-17-2008 , 02:15 PM



On Jan 17, 1:25 pm, Naga <nagale... (AT) gmail (DOT) com> wrote:
Quote:
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).

http://joseph.randomnetworks.com/arc...r-expressions/

HTH
/Lennart


Reply With Quote
  #5  
Old   
luckyonlyya@126.com
 
Posts: n/a

Default Re: Domain for numbers. - 01-18-2008 , 09:47 PM



On Jan 18, 3:15 am, Lennart <Erik.Lennart.Jons... (AT) gmail (DOT) com> wrote:
Quote:
On Jan 17, 1:25 pm, Naga <nagale... (AT) gmail (DOT) com> wrote:

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).

http://joseph.randomnetworks.com/arc...stgresql-check...

HTH
/Lennart
The Nanyang Triangle Rose Import & Export Co. Ltd is a large private
enterprises, which is a scientific research center and big company of
flower production. It has a planting area of over 165 acres. We mainly
engaged in the cultivation, breeding and production of the Roses.
Every year 7 million Rose seedlings are produced in our research
center.
If you are interested in our roses, please browse here:
http://www.nyrose.cn/English/index.asp


Reply With Quote
  #6  
Old   
luckyonlyya@126.com
 
Posts: n/a

Default Re: Domain for numbers. - 01-18-2008 , 09:47 PM



On Jan 18, 3:15 am, Lennart <Erik.Lennart.Jons... (AT) gmail (DOT) com> wrote:
Quote:
On Jan 17, 1:25 pm, Naga <nagale... (AT) gmail (DOT) com> wrote:

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).

http://joseph.randomnetworks.com/arc...stgresql-check...

HTH
/Lennart
The Nanyang Triangle Rose Import & Export Co. Ltd is a large private
enterprises, which is a scientific research center and big company of
flower production. It has a planting area of over 165 acres. We mainly
engaged in the cultivation, breeding and production of the Roses.
Every year 7 million Rose seedlings are produced in our research
center.
If you are interested in our roses, please browse here:
http://www.nyrose.cn/English/index.asp


Reply With Quote
  #7  
Old   
luckyonlyya@126.com
 
Posts: n/a

Default Re: Domain for numbers. - 01-18-2008 , 09:47 PM



On Jan 18, 3:15 am, Lennart <Erik.Lennart.Jons... (AT) gmail (DOT) com> wrote:
Quote:
On Jan 17, 1:25 pm, Naga <nagale... (AT) gmail (DOT) com> wrote:

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).

http://joseph.randomnetworks.com/arc...stgresql-check...

HTH
/Lennart
The Nanyang Triangle Rose Import & Export Co. Ltd is a large private
enterprises, which is a scientific research center and big company of
flower production. It has a planting area of over 165 acres. We mainly
engaged in the cultivation, breeding and production of the Roses.
Every year 7 million Rose seedlings are produced in our research
center.
If you are interested in our roses, please browse here:
http://www.nyrose.cn/English/index.asp


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.