Re: Query with type char

From: Christoph Moench-Tegeder <cmt(at)burggraben(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Query with type char
Date: 2017-02-16 10:30:11
Message-ID: 20170216103011.rpvau5ku37ef63jp@squirrel.exwg.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

## Egon Frerich (egon(at)frerich(dot)eu):

> Why are there 0 rows? I expect 3 rows:

From your results I guess that sp3 IS NULL on the three rows where
it is not 'j'. You should use the correct comparison predicate for
this case, i.e. IS DISTINCT FROM instead of <>.
https://www.postgresql.org/docs/9.6/static/functions-comparison.html

Regards,
Christoph

--
Spare Space.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message dhaval jaiswal 2017-02-16 12:33:18 Alternate way of xpath
Previous Message Egon Frerich 2017-02-16 10:14:08 Query with type char