Home » SQL & PL/SQL » SQL & PL/SQL » Boolean on table
Boolean on table [message #7790] Wed, 09 July 2003 04:48 Go to next message
arseni
Messages: 8
Registered: March 2003
Junior Member
How can I put a column with boolean datatype when I create a table? I think that boolean datatype doesn't exists in table definition.
Re: Boolean on table [message #7792 is a reply to message #7790] Wed, 09 July 2003 06:34 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Make it a Varchar2(1) with a check constraint that restrict possible values to two possibilities: a value for TRUE (e.g. 'Y') and a value for FALSE (e.g. 'N').

Maaher
Re: Boolean on table [message #7793 is a reply to message #7790] Wed, 09 July 2003 07:38 Go to previous message
sandhya
Messages: 15
Registered: February 2002
Junior Member
There is no datatype by boolean.. you can create a field with char of 1
Previous Topic: Where -clause
Next Topic: number
Goto Forum:
  


Current Time: Thu Apr 25 18:01:02 CDT 2024