dbTalk Databases Forums  

Boolean data types

comp.databases.rdb comp.databases.rdb


Discuss Boolean data types in the comp.databases.rdb forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pavunkumar
 
Posts: n/a

Default Boolean data types - 03-05-2009 , 05:46 AM






Dear Friend

can any one explain about this scenario
I have table called like below

Column | Type | Modifiers
--------+---------+-----------
a | boolean |
b | text |


I inserted some value into the table

I want true value tuple means
pavunkumar=> SELECT * from boll where a ;
a | b
---+-------
t | pavun
t | pavun
t | pavun
t | pavun
t | pavun
(5 rows)

I want to select which contain false value

How could I do that one ?






Reply With Quote
  #2  
Old   
Timothy Madden
 
Posts: n/a

Default Re: Boolean data types - 04-19-2009 , 03:21 PM






pavunkumar wrote:
Quote:
Dear Friend

can any one explain about this scenario
I have table called like below

Column | Type | Modifiers
--------+---------+-----------
a | boolean |
b | text |


I inserted some value into the table

I want true value tuple means
pavunkumar=> SELECT * from boll where a ;
a | b
---+-------
t | pavun
t | pavun
t | pavun
t | pavun
t | pavun
(5 rows)

I want to select which contain false value

How could I do that one ?

How about
SELECT * FROM boll WHERE NOT a;
?

Timothy Madden


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.