Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Implementation of boolean types.
"Frank van Bortel" <frank.van.bortel_at_gmail.com> wrote in message
news:db6cjj$obt$2_at_news1.zwoll1.ov.home.nl...
> Matthias Hoys wrote:
>>
>> I would use a CHAR(1) column with a check constraint ('0' or '1').
>> You could then link the table to a small lookup table with the
>> description
>> of the 0 and 1.
>> 0 = male
>> 1 = female
>>
>
> No.
> That would be '0' for male, and '1' for female. Character strings!
>
>
> Why would you use a depericated char datatype, and not
> a number?
>
> --
> Regards,
> Frank van Bortel
CHAR(1) takes up less space ? Received on Thu Jul 14 2005 - 16:53:30 CDT