subselects - Mailing list pgsql-sql

From Joseph Shraibman
Subject subselects
Date
Msg-id 3A259958.D6C578D5@selectacast.net
Whole thread Raw
Responses Re: subselects
List pgsql-sql
 
I tried to do this:SELECT r , a , (SELECT u , re FROM dir WHERE u = a) , cdate FROM rep
WHERE m IN(190);

... and I got:

ERROR:  Subselect must have only one field

An explain shows that two subselects result in two queries, even thought
they are accessing the same row.  Why can subselects only have one
field?

Database version: PostgreSQL 7.0.3 on i686-pc-linux-gnu, compiled by gcc
egcs-2.91.66

-- 
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Cache lookup failure
Next
From: "Kenn Thompson"
Date:
Subject: Subselect in join?