Thread: Creating a row during a select

Creating a row during a select

From
Michal Paluchowski
Date:
Hi,

is there a way to have PostgreSQL insert a new row into a table during
a SELECT query if no row is found by that query?


--
Best regards,
 Michal                          mailto:mpaluchowski@gmail.com


Re: Creating a row during a select

From
"Dmitry Koterov"
Date:
Try to read about CREATE RULE in the documentation.

On 8/14/07, Michal Paluchowski <mpaluchowski@gmail.com > wrote:

Hi,

is there a way to have PostgreSQL insert a new row into a table during
a SELECT query if no row is found by that query?


--
Best regards,
Michal                          mailto:mpaluchowski@gmail.com


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq