Received: from corvette.mascari.com (dhcp26136016.columbus.rr.com [24.26.136.16]) by hub.org (8.9.3/8.9.3) with ESMTP id PAA07625 for ; Thu, 24 Feb 2000 15:53:48 -0500 (EST) (envelope-from mascarm@mascari.com) Received: from mascari.com (ferrari.mascari.com [192.168.2.1]) by corvette.mascari.com (8.9.3/8.9.3) with ESMTP id PAA07232; Thu, 24 Feb 2000 15:51:40 -0500 Sender: mascarm@corvette.mascari.com Message-ID: <38B55346.9156B92D@mascari.com> Date: Thu, 24 Feb 2000 10:50:30 -0500 From: Mike Mascari Organization: Mascari Development Inc X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i586) X-Accept-Language: en MIME-Version: 1.0 To: Ed Loehr CC: Joseph Shraibman , "pgsql-interfaces@postgreSQL.org" Subject: Re: [INTERFACES] selectecting not null varchars. References: <38B58AAE.B28DD6CB@selectacast.net> <38B58ED8.FDE3E3C7@austin.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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