Re: [INTERFACES] selectecting not null varchars.

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
Cc: Joseph Shraibman <jks(at)p1(dot)selectacast(dot)net>, "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] selectecting not null varchars.
Date: 2000-02-24 15:50:30
Message-ID: 38B55346.9156B92D@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Ed Loehr wrote:
>
> Joseph Shraibman wrote:
> >
> > select * from directory where h != null ;
> > ... gets you this:
> > ERROR: parser: parse error at or near ";"
>
> Postgresql's SQL "not equal" operator is "<>"...Try this:
>
> select * from directory where h <> null;
>
> Cheers,
> Ed Loehr
>

Does that work? I remember when the equality with NULL was added
because of non-compliant queries being generated from Access. I
didn't know inequality was implemented as well. Formal SQL is:

SELECT * FROM directory WHERE h IS NOT NULL;

Mike Mascari

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Joseph Shraibman 2000-02-24 19:46:54 selectecting not null varchars.
Previous Message Joe Shevland 2000-02-23 16:12:29 Re: [INTERFACES] Last best version of the JDBC Driver?