Re: Insert Statement & Composite Type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Grant Martin" <grantwgmartin(at)live(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Insert Statement & Composite Type
Date: 2012-09-08 15:12:33
Message-ID: 27385.1347117153@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Grant Martin" <grantwgmartin(at)live(dot)com> writes:
> What is the correct INSERT statement syntax to insert a composite
> type into a table of that type.

This should work:

INSERT INTO licencee VALUES(new_licencee.*);

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Steve Horn 2012-09-10 01:13:33 Details of Segmentation Fault
Previous Message Grant Martin 2012-09-08 08:33:24 Insert Statement & Composite Type