Re: SET syntax in INSERT

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: SET syntax in INSERT
Дата
Msg-id 5697FE5B.6040209@joh.to
обсуждение исходный текст
Ответ на Re: SET syntax in INSERT  (Vitaly Burovoy <vitaly.burovoy@gmail.com>)
Ответы Re: SET syntax in INSERT  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 2016-01-14 20:50, Vitaly Burovoy wrote:
> On 1/14/16, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Assume a table with an int-array column, and consider
>>
>> INSERT INTO foo SET arraycol[2] = 7, arraycol[4] = 11;
>
> Right part is a column name, not an expression. Isn't it?
> So "arraycol[2]" is not possible there.

I think the idea here was that it's allowed in UPDATE.  But I don't see 
the point of allowing that in an INSERT.


.m



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

Предыдущее
От: Vitaly Burovoy
Дата:
Сообщение: Re: SET syntax in INSERT
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SET syntax in INSERT