From: Vinay <vinay@mdp.net>
To: pgsql-admin@postgresql.org
Subject: Newbie question
Date: Thu, 26 Jun 2003 15:59:55 -0400
Message-ID: <001c01c33c1d$843e0100$157a40c0@vinay> (raw)
I have a very simple question regarding creating columns in a table
Can we create a column in a table in such a way that it will allow only certain length, nothing less or nothing more
here is an example
create table test(column1 char(2));
will create table with column1 which will accept characters upto length two.
I want the column to accept the column value which is absolutely length of two.
Any Help appreciated
Thank you
Vinay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: vinay@mdp.net
Subject: Re: Newbie question
In-Reply-To: <001c01c33c1d$843e0100$157a40c0@vinay>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox