Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 20th, 2003, 04:32 PM
Registered User
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

thanks!! that helps greatly!

I guess I should have read my oracle documentation.

But your examples helped me to really understand what was going on.

Thanks again!

Old January 15th, 2004, 08:17 AM
Registered User
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to AzOraDBA Send a message via MSN to AzOraDBA Send a message via Yahoo to AzOraDBA

quote:Originally posted by sal
 Oracle 9i has a boolean data type. You can set it to TRUE FALSE or NULL.
Oracle 8i does not have Boolean.

But when i was using a wizard for creating table there wasn`t any boolen type for data. Where i can find it...

Old June 8th, 2006, 06:35 AM
Registered User
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Oracle allows Boolean data type in PL/SQL. But it can not be used as a data type for a column.
Old March 1st, 2007, 08:24 PM
Registered User
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I know this kinda late maybe, but just thought maybe it helps others by adding this comment:

In Oracle you can set up a check constraint to sort of emulate the boolean idea e.g.

CREATE TABLE table_name
 column_name CHAR CHECK (column_name IN ('Y','N'))

or you can add a check constraint to an existing table e.g.

 column_name IN('Y','N')

This of course depends on the column type you did setup in the table.

for the rest, there is a specific BOOLEAN type in PL/SQL when you declare you variable e.g.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle to SQL Server DataType Mapping maulik33 SQL Language 0 November 1st, 2007 02:48 PM
help me with boolean array Un33k Pro Visual Basic 2005 1 June 12th, 2007 11:43 AM
boolean starlightt Java Basics 2 April 6th, 2006 05:34 PM
Oracle Boolean Datatype Fireball Oracle 1 April 26th, 2004 05:46 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.