Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Data type

Re: Data type

From: bigKED <tme2slp_at_yahoo.com>
Date: Fri, 20 Sep 2002 01:04:10 GMT
Message-ID: <euui9.491327$q53.16765190@twister.austin.rr.com>


Thanks...

"Daniel Morgan" <dmorgan_at_exesolutions.com> wrote in message news:3D8A41C9.945D2E59_at_exesolutions.com...
> bigKED wrote:
>
> > I've installed Enterprise 9i on Windows 2000. Is there a data type for
yes
> > or no? For e.g.. Done Y/N,
> >
> > Thanks...
> >
> > Ked
> >
> > P.S. Yes, I"m new.
>
> CHAR(1) or VARCHAR2(1).
>
> Your construct is likely going to be something like:
>
> CREATE TABLE xyz (
> yes_no_field VARCHAR2(1) DEFAULT N);
>
> ALTER TABLE xyz
> ADD CONSTRAINT cc_xyz_yes_no_field
> CHECK (yes_no_field IN ('Y', 'N'));
>
> Daniel Morgan
>
Received on Thu Sep 19 2002 - 20:04:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US