Re: Help with "empty()"

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Help with "empty()"
Дата
Msg-id 20020523211220.H73885-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Help with "empty()"  (Alan Wayne <alanjwayne@yahoo.com>)
Ответы Re: Help with "empty()"  ("Joel Burton" <joel@joelburton.com>)
Список pgsql-general
> In doing table validation, I have often used the
> foxpro function "empty()" which returns .t. if the
> enclosed entity is empty. i.e., if boolean .f. then
> empty = .t.. If number 0, then empty = .t., and if a
> blank string, then empty = .t.
>
> I didn't see anyother way to mimic this behavior then
> what I wrote below, is there a better way????

I'd have suggested writing empty functions for various
types, empty(boolean), empty(int4), empty(float8),
empty(text) and using those.  You could probably even
just do them as sql functions.


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

Предыдущее
От: Alan Wayne
Дата:
Сообщение: Help with "empty()"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Pg_dump and huge OID's