Re: Column question - Mailing list pgsql-novice

From harrold@sage.che.pitt.edu
Subject Re: Column question
Date
Msg-id Pine.LNX.4.21.0106201050450.9813-100000@sage.che.pitt.edu
Whole thread Raw
In response to Column question  ("Williams, Travis L, NPONS" <tlw@att.com>)
List 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
|


pgsql-novice by date:

Previous
From: "Williams, Travis L, NPONS"
Date:
Subject: Column question
Next
From: Michael Case
Date:
Subject: help with inheritance