Re: How to set array element to null value

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: How to set array element to null value
Дата
Msg-id e1e65265-77f9-4c55-918e-d64d632cdc20@gmx.net
обсуждение исходный текст
Ответ на How to set array element to null value  (Brahmam Eswar <brahmam1234@gmail.com>)
Список pgsql-general
Brahmam Eswar schrieb am 09.07.2018 um 11:58:
> I'm trying to reset array element to null. but 3rd line of below snippet is giving the compilation error.
> 
> 
> FOR indx_1 IN array_lower(X, 1)..array_upper(X, 1) LOOP
> IF X[indx_1].REFERENCE_VALUE = 'ABC' THEN
> X[indx_1].REFERENCE_VALUE:='';
> END IF;
> END LOOP;

What data type is X exactly? It looks like a composite record type. 

(Also: an empty string '' is not the same as NULL)



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: How to set array element to null value
Следующее
От: Łukasz Jarych
Дата:
Сообщение: Create event triger