Re: Add constraint for number of chars

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: PostgreSQL Admin <postgres(at)productivitymedia(dot)com>
Cc: PostgreSQL SQL List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Add constraint for number of chars
Date: 2007-04-26 05:25:10
Message-ID: 16545.1177565110@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

PostgreSQL Admin <postgres(at)productivitymedia(dot)com> writes:
> username | varchar(100)| constraint username >=8 and username <=100

Perhaps you mean "length(username) >= 8" and so on?

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bart Degryse 2007-04-26 07:07:13 plperlu hash problem
Previous Message PostgreSQL Admin 2007-04-26 04:41:44 Add constraint for number of chars