Multi-row insert using a Function

Поиск
Список
Период
Сортировка
От Michael Rowan
Тема Multi-row insert using a Function
Дата
Msg-id D2E3658A-9E47-42C8-80DB-FE72DC0824EE@internode.on.net
обсуждение исходный текст
Список pgsql-novice
Very new to Postgres and functions.

Using PostgreSQL 9 and pl/pgsql I wish to use a function to insert several rows into a table.  The table has text and
integercolumns.  Another function inserts a single row correctly, but I do not see how to arrange the data for the
multiplerow function.  I assume it needs to be in an array, but I cannot find an example in the docs, and am darned if
Ican send it something acceptable. 

Any example would help.  Thanks.


Michael Rowan
mike.rowan@internode.on.net





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

Предыдущее
От: "Rob Richardson"
Дата:
Сообщение: Re: Why won't this function loop?
Следующее
От: bakkiya
Дата:
Сообщение: Re: Could not open relation with OID (table partitioning issue?)