SELECT ROW(t.*) FROM table t and nulls with textual representation?

Поиск
Список
Период
Сортировка
От Teemu Juntunen
Тема SELECT ROW(t.*) FROM table t and nulls with textual representation?
Дата
Msg-id 133C2918D3FB42979CD440B036577DEF@eng02
обсуждение исходный текст
Ответы Re: SELECT ROW(t.*) FROM table t and nulls with textual representation?  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
Hello,
 
is there any possibility to get null-values as text 'null' from dynamic select expression like
 
SELECT ROW(t.*) FROM table t
 
Normally you get
 
(t1,t2,t3,,t5,,,)
 
How can you get
 
(t1,t2,t3,null,t5,null,null,null)
 
I would like to use the result with dynamic update expression and update doesn't like of empty values, so
 
UPDATE SET (t1,t2,t3,t4,t5,t6,t7,t8) = (t1,t2,t3,,t5,,,)
 
generates error.
 
 
Best regards,
Teemu Juntunen, e-ngine

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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Tuesday (PST8PDT) Jeff Davis Presents: Operator Exclusion Constraints
Следующее
От: oscar arocha
Дата:
Сообщение: logs de postgres en debian