UPDATE query based on a SELECT command. - Mailing list pgsql-novice

From JORGE MALDONADO
Subject UPDATE query based on a SELECT command.
Date
Msg-id CAAY=A79WB87A2C9kxKbLZh3LDkZrxoO+-R2AoejnZB5D2Wmp4w@mail.gmail.com
Whole thread Raw
Responses Re: UPDATE query based on a SELECT command.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Let's suppose that I have an UPDATE query which includes a SELECT as part of it as follows:

UPDATE table1
SET field1 = (SELECT fieldx FROM table2 WHERE .........)

What happens if the result of the SELECT command does not return any row?

Respectfully,
Jorge Maldonado

pgsql-novice by date:

Previous
From: "Craig Boyd"
Date:
Subject: Re: [personal] Re: PostgreSQL v8 & v9 on the same XP machine
Next
From: Tom Lane
Date:
Subject: Re: UPDATE query based on a SELECT command.