Insert using a subselect? - Mailing list pgsql-novice

From Francisco Reyes
Subject Insert using a subselect?
Date
Msg-id 20010910171633.B25518-100000@zoraida.natserv.net
Whole thread Raw
Responses Re: Insert using a subselect?  (Jason Tan <jason@rebel.rebel.net.au>)
List pgsql-novice
Does PostgreSQL supports doing an insert with a subselect as it's value?
Something like:

insert into hearn_dates (date)
values ((select distinct merge_date from hearn));

The error I am getting is:
ERROR:  More than one tuple returned by a subselect used as an expression.



pgsql-novice by date:

Previous
From: "G.LeeJ"
Date:
Subject: ...
Next
From: Jason Tan
Date:
Subject: Re: Insert using a subselect?