Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Antw: Re: Möglichkeit in Abfrage alles, egal ob true oder false


  • From: "Daniel Seichter" <dseichter(at)radiomatic(dot)com>
  • To: <guido(at)objectpark(dot)org>
  • Cc: <pgsql-de-allgemein(at)postgresql(dot)org>
  • Subject: Antw: Re: Möglichkeit in Abfrage alles, egal ob true oder false
  • Date: Wed, 29 Mar 2006 17:25:35 +0200
  • Message-id: <s42ac321(dot)086(at)HBC-N4(dot)hbccr(dot)de>

Hallo,

> select * from table where freigabe is not null;
wäre auch eine gute Möglichkeit...würde mir auch ein wenig
Programmieraufwand sparen...

Daniel


>>> Guido Neitzer <guido(at)objectpark(dot)org> 29.03.2006 17:16 >>>
On 29.03.2006, at 17:04 Uhr, Daniel Seichter wrote:

> In einer Abfrage möchte ich nun folgendes machen:
> SELECT * WHERE freigabe=ALLE

Äh, warum willst Du das dann überhaupt in der where-clause haben?  
Wenn Dich die Werte darin nicht interessieren, reicht ein

select * from table;

Ansonsten ein:

select * from table where freigabe is not null;

cug

-- 
PharmaLine, Essen, GERMANY
Software and Database Development



---------------------------(end of
broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group