coalesce a null to a char ?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема coalesce a null to a char ?
Дата
Msg-id 482E80323A35A54498B8B70FF2B8798003F77719FA@azsmsx504.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: coalesce a null to a char ?  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general

How can I do this....

 

selcet coalesce((select ‘y’ from foo where name = f.name),’n’) from foo f where...

 

So the query returns a “y” or “n” depending on whether or not the subquery is null.

 

I get...

 

“ERROR: failed to find conversion function from unknown to text”

 

 

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: tsearch2 dictionary for statute cites
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: coalesce a null to a char ?