Add constraint for number of chars - Mailing list pgsql-sql

From PostgreSQL Admin
Subject Add constraint for number of chars
Date
Msg-id 46302D88.7070804@productivitymedia.com
Whole thread Raw
Responses Re: Add constraint for number of chars  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi,

This is seemly simple, but I'm @ a loss this early in the morning.  It's
best explained this way

SAMPLE
-----------------------------------
id                  | serial            |
username   | varchar(100)| constraint username >=8 and username <=100

The problem is that it's characters not integers or numeric.  It my
constraint correct?

Thanks for the help,
J


pgsql-sql by date:

Previous
From: "Nemo Terry"
Date:
Subject: Re: Which function transform x,y to latitude/longitude?
Next
From: Tom Lane
Date:
Subject: Re: Add constraint for number of chars