Received: from p1.selectacast.net (IDENT:root@p1.selectacast.net [206.41.1.251]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA01892 for ; Thu, 24 Feb 2000 14:47:06 -0500 (EST) (envelope-from jks@p1.selectacast.net) Received: from selectacast.net (IDENT:jks@d1 [209.219.91.66]) by p1.selectacast.net (8.9.3/8.9.3) with ESMTP id OAA23966 for ; Thu, 24 Feb 2000 14:46:54 -0500 Sender: jks@p1.selectacast.net Message-ID: <38B58AAE.B28DD6CB@selectacast.net> Date: Thu, 24 Feb 2000 14:46:54 -0500 From: Joseph Shraibman Organization: Xtenit X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: "pgsql-interfaces@postgreSQL.org" Subject: selectecting not null varchars. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have a table with some text strings and I want to select row where the text fields have a value in them. I tried : select * from directory where length(h) > 0 ; and got: ERROR: Null input to textlen So I tried: select * from directory where h != null AND length(h) > 0 ; and got: ERROR: parser: parse error at or near "and" In fact this: select * from directory where h != null ; ... gets you this: ERROR: parser: parse error at or near ";" Trying to select where it is equal to null works. Trying to select where an int is not equal to a certain value works. But I cannot select where a varchar (or int) is not equal to null.