pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHello Testing
2+ messages / 2 participants
[nested] [flat]
* Hello Testing
@ 2003-08-16 20:55 Deepak Malhotra <deepakjm@yahoo.com>
2003-08-16 21:25 ` Re: Hello Testing Stephan Szabo <sszabo@megazone.bigpanda.com>
0 siblings, 1 reply; 2+ messages in thread
From: Deepak Malhotra @ 2003-08-16 20:55 UTC (permalink / raw)
To: pgsql-admin
Hello
Any idea why I am getting
"ERROR: More than one tuple returned by a subselect
used as an expression"
while running update statement using subselect
statement.
=====
Deepak Malhotra
Phoenix, AZ
deepakjm@yahoo.com
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Hello Testing
2003-08-16 20:55 Hello Testing Deepak Malhotra <deepakjm@yahoo.com>
@ 2003-08-16 21:25 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Szabo @ 2003-08-16 21:25 UTC (permalink / raw)
To: Deepak Malhotra <deepakjm@yahoo.com>; +Cc: pgsql-admin
On Sat, 16 Aug 2003, [iso-8859-1] Deepak Malhotra wrote:
> Hello
>
> Any idea why I am getting
> "ERROR: More than one tuple returned by a subselect
> used as an expression"
> while running update statement using subselect
> statement.
That usually means you're using a subselect that returns
multiple rows in a context where a scalar is expected,
for example
update foo set bar = (select abc from def);
works if def has 0 rows (giving a NULL) or 1 row (giving a value),
but if the subselect returned say 3 rows, which gets used to
update each row from foo?
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-08-16 21:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-16 20:55 Hello Testing Deepak Malhotra <deepakjm@yahoo.com>
2003-08-16 21:25 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox