Re: [GENERAL] Query with type char

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: [GENERAL] Query with type char
Дата
Msg-id 20170216103011.rpvau5ku37ef63jp@squirrel.exwg.net
обсуждение исходный текст
Ответ на [GENERAL] Query with type char  (Egon Frerich <egon@frerich.eu>)
Список pgsql-general
## Egon Frerich (egon@frerich.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.


В списке pgsql-general по дате отправления:

Предыдущее
От: Egon Frerich
Дата:
Сообщение: [GENERAL] Query with type char
Следующее
От: dhaval jaiswal
Дата:
Сообщение: [GENERAL] Alternate way of xpath