Re: insert into table from list or array ?

Поиск
Список
Период
Сортировка
От Andreas
Тема Re: insert into table from list or array ?
Дата
Msg-id 4CBCD29E.3000304@gmx.net
обсуждение исходный текст
Ответ на Re: insert into table from list or array ?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
  Am 18.10.2010 20:14, schrieb Pavel Stehule:
> 2010/10/18 Andreas:
>> is it possible to insert into a table from list or an array ?
> yes, it's possible
>
> INSERT INTO tmptab
>     SELECT v
>       FROM unnest(string_to_array('1,2,4,2,1',',')) g(v)
>

Thanks Pavel,
though I'm just not yet 100% aware how it works but it works.   :)


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: insert into table from list or array ?
Следующее
От: Nicholas I
Дата:
Сообщение: Need help on update.