Re: Column question

From: harrold(at)sage(dot)che(dot)pitt(dot)edu
To:
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Column question
Date: 2001-06-20 14:53:00
Message-ID: Pine.LNX.4.21.0106201050450.9813-100000@sage.che.pitt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

hey.

perhaps you could use the datatype "boolean". where true can be Y and
false can be N.

possibly something like:

CREATE TABLE tablename
(denied boolean DEFAULT true);

i cannot try it out here, but it might work
--
john

Sometime in June Williams, Travis L, NPONS assaulted keyboard and produced...

|I'm wanting to make a column named "denied" with a default of "Y" and only
|be able to have two possible values "Y" or "N".. any help..!!?? Thanks in
|advance..
|
|Travis
|
|---------------------------(end of broadcast)---------------------------
|TIP 5: Have you checked our extensive FAQ?
|
|http://www.postgresql.org/users-lounge/docs/faq.html
|

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Williams, Travis L, NPONS 2001-06-20 17:08:53 Perl postgres question
Previous Message Williams, Travis L, NPONS 2001-06-20 14:18:02 Column question