Inserting a record data type into a table

Поиск
Список
Период
Сортировка
От Graeme Hinchliffe
Тема Inserting a record data type into a table
Дата
Msg-id 1113226411.955.90.camel@hatstand.office.zen.co.uk
обсуждение исходный текст
Ответы Re: Inserting a record data type into a table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hiya
    Is it possible to insert a record data type into a table, or am I going
to have to refer to each attribute individually in an insert?

what I would like to be able to do is simply

INSERT INTO newtable VALUES (NEW);

and have the whole NEW record in a trigger inserted into the new table.

Thanks

--
-----
Graeme Hinchliffe (BSc)
Core Systems Designer
Zen Internet (http://www.zen.co.uk/)

Direct: 0845 058 9074
Main  : 0845 058 9000
Fax   : 0845 058 9005

Вложения

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

Предыдущее
От: Weiping
Дата:
Сообщение: Re: bytea vs large object in version 8
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg 8.0.1-r3 killls pgadmin3 and phppgadmin