On Tue, 11 Sep 2001, Jason Tan wrote:
> On Mon, 10 Sep 2001, Francisco Reyes wrote:
> > 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.
> Presumably you slect distinct is returing more than one value/tuple.
> Run it by hand and see what it returns.
drf=# select distinct merge_date from hearn;
3 rows on 1 column.
In response to
pgsql-novice by date
|Next:||From: Francisco Reyes||Date: 2001-09-11 04:40:06|
|Subject: Path for pgsql \i option?|
|Previous:||From: Jason Tan||Date: 2001-09-11 03:19:25|
|Subject: Re: |