Re: Re: DateDiff, IsNull?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: DateDiff, IsNull?
Дата
Msg-id 24829.997850100@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DateDiff, IsNull?  ("Bill" <bchie@opensys.com.hk>)
Список pgsql-sql
"Bill" <bchie@opensys.com.hk> writes:
> IsNull work like this
> SELECT IsNull( user_name, '') FROM user ;
> then the query will return empty string when the field user_name is null

Apparently, IsNull is Microsoft-speak for the SQL standard's COALESCE
function.  COALESCE is defined as returning the first of its parameters
that is not NULL.
        regards, tom lane


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

Предыдущее
От: "Bill"
Дата:
Сообщение: Re: DateDiff, IsNull?
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: result sets from functions...