Re: Problem with coalesce..

Поиск
Список
Период
Сортировка
От Continuing Technical Education
Тема Re: Problem with coalesce..
Дата
Msg-id 00a001c04414$997fd420$5911be86@cte.Dal.Ca
обсуждение исходный текст
Ответ на Problem with coalesce..  ("George Henry C. Daswani" <gdaswani@esri.com>)
Список pgsql-sql
Try:
 
SELECT COALESCE(CURVALUE,1) FROM TABLEKEYS WHERE TABLENAME = 'BUYER';
 
----- Original Message -----
Sent: Tuesday, October 31, 2000 5:52 PM
Subject: [SQL] Problem with coalesce..

Hello,
 
    Was wondering if such a call is unsupported, or a bug?
 
7.0.2 (postgresql, linux redhat 7.0)
 
SELECT COALESCE ((SELECT NULL,1)
 
returns a 1, correct..
 
however..
 
SELECT COALESCE ((SELECT CURVALUE FROM TABLEKEYS WHERE TABLENAME = 'BUYER'),1)
 
returns a "UNKNOWN expression type 501"
 
SELECT CURVALUE FROM TABLEKEYS WHERE TABLENAME = 'BUYER'; returns a '0'
 
Thanks..
 
George
 
 

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

Предыдущее
От: "pgsql-sql"
Дата:
Сообщение: Re(2): Re(2): Large Object dump ?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: [GENERAL] Problem with coalesce..