INSERT / UPDATE into 2 inner joined table simultaneously - Mailing list pgsql-sql

From Lou
Subject INSERT / UPDATE into 2 inner joined table simultaneously
Date
Msg-id 38a1b75c-2a29-5833-cbd6-6b76dca019da@dayspringpublisher.com
Whole thread Raw
Responses Re: INSERT / UPDATE into 2 inner joined table simultaneously
Re: INSERT / UPDATE into 2 inner joined table simultaneously
List pgsql-sql

Hi everyone,

This is my first post here.

I have two tables named c and p. When using SELECT, they are linked using an INNER JOIN like in this example: "SELECT * FROM c INNER JOIN p ON c.id = p.c_id WHERE name = 'Jones';"

How can I INSERT new rows into both tables simultaneously with automatically created id numbers, and how can I UPDATE both tables simultaneously?

Lou

pgsql-sql by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: Why does GROUP BY reduce number of rows?
Next
From: Christopher Swingley
Date:
Subject: Re: INSERT / UPDATE into 2 inner joined table simultaneously