Re: [GENERAL] PB with Null string

Поиск
Список
Период
Сортировка
От Postgres DBA
Тема Re: [GENERAL] PB with Null string
Дата
Msg-id Pine.BSF.4.02.9812231137160.19908-100000@nest.bistbn.com
обсуждение исходный текст
Ответ на PB with Null string  (darold <darold@neptune.fr>)
Список pgsql-general
Instead you should use "IS NOT NULL" or "IS NULL":
 SELECT * FROM t_table WHERE s_string IS NULL;

Aleksey

On Wed, 23 Dec 1998, darold wrote:

> Hi,
>
>
> I have tried this query to check if a field is empty:
>
>     SELECT * FROM t_table WHERE s_string='';
>
> where s_string is declared as text. But this doesn't work, why? Is
> there's an
> other way to do that ? I have also tried with NULL but I think it is not
> included
> in the 6.3.2...
>
> Thank,
>
> Gilles
>
>
>


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

Предыдущее
От: darold
Дата:
Сообщение: Backup of large object
Следующее
От: Adriaan Joubert
Дата:
Сообщение: Postgresql on Alpha