Re: numeric fields and null

Поиск
Список
Период
Сортировка
От Guy Fraser
Тема Re: numeric fields and null
Дата
Msg-id 3ECD4EB7.1080407@incentre.net
обсуждение исходный текст
Ответ на numeric fields and null  (Don Park <donp+postgresql@klickitat.st>)
Список pgsql-sql
Use:

SELECT id,postaladdressid FROM users WHERE postaladdressid IS NULL;



Don Park wrote:

>Im trying to pull out all records in a table where field
>'postaladdressid=null' but I cant figure this out.
>
>\d users
>....
>id               | numeric
>postaladdressid  | numeric
>....
>
>adhoc=# update users set postaladdressid=null where id=50;
>UPDATE 1
>
>adhoc=# select id,postaladdressid from users where postaladdressid=null;
> id | postaladdressid
>----+-----------------
>(0 rows)
>
>Why did it not select record 50?
>
>just for your info, this is what record 50 looks like.
>adhoc=# select id,postaladdressid from users where id=50;
> id | postaladdressid
>----+-----------------
> 50 |
>(1 row)
>
>
>Don
>  
>




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

Предыдущее
От: ggunning@esatclear.ie (jmsmithe)
Дата:
Сообщение: how to use an aggregate function
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: numeric fields and null