X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id AA457310061 for ; Thu, 26 Jun 2003 20:05:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 13346-06 for ; Thu, 26 Jun 2003 17:05:30 -0300 (ADT) Received: from mail.mdp.net (mail.mdp.net [207.89.166.195]) by svr1.postgresql.org (Postfix) with ESMTP id DEB4031005E for ; Thu, 26 Jun 2003 17:05:29 -0300 (ADT) Received: from vinay [65.88.169.22] by mail.mdp.net (SMTPD32-6.06) id AE2010101D4; Thu, 26 Jun 2003 15:48:48 -0400 Message-ID: <001c01c33c1d$843e0100$157a40c0@vinay> From: "Vinay" To: Subject: Newbie question Date: Thu, 26 Jun 2003 15:59:55 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C33BFB.FCA44540" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-RBL-Warning: REVDNS: This E-mail was sent from a MUA/MTA 65.88.169.22 with no reverse DNS entry. X-Declude-Sender: vinay@mdp.net [65.88.169.22] X-Declude-Spoolname: D4e201d4.SMD X-Note: This E-mail was scanned by DCC JunkMail (www.dataconstructs.com) for spam. X-Archive-Number: 200306/299 X-Sequence-Number: 9290 This is a multi-part message in MIME format. ------=_NextPart_000_0019_01C33BFB.FCA44540 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 cer= tain 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 ------=_NextPart_000_0019_01C33BFB.FCA44540 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have a very simple question regarding cr= eating=20 columns in a table
 
Can we create a column in a table in such = a way=20 that it will allow only certain length, nothing less or nothing=20 more
 
here is an example
 
 
create table test(column1 char(2));=
 
will create table with column1 which will = accept=20 characters upto length two.
I want the column to accept the column val= ue which=20 is absolutely length of two.
 
 
Any Help appreciated
 
Thank you
Vinay
------=_NextPart_000_0019_01C33BFB.FCA44540--