pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Chris Bitmead <chris.bitmead@bigfoot.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [GENERAL] How to do this in SQL?
Date: Tue, 30 Mar 1999 17:13:48 +0200
Message-ID: <l03110710b3269a63e14c@[147.233.148.140]> (raw)
In-Reply-To: <3700E7C9.FCD0D4C5@bigfoot.com>
References: <l0311070fb32695e2d222@[147.233.148.140]>

At 17:03 +0200 on 30/03/1999, Chris Bitmead wrote:


> Thanks! Now what if I had...
> CREATE TABLE book (author oid, publisher oid);
>
> What is the syntax? Is it...
>
> INSERT INTO BOOK(author, publisher)
> SELECT author.oid, publisher.oid
> FROM author, publisher
> WHERE author.name = 'Tolstoy' AND publisher.name = 'Penguin';
>
> Is that right?

Looks right to me.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (5+ messages)  latest in thread

Message-ID: <l03110710b3269a63e14c@[147.233.148.140]>
Permalink:  ../l03110710b3269a63e14c@%5B147.233.148.140%5D/
Also on:    postgresql.org/message-id/l03110710b3269a63e14c@[147.233.148.140]

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: herouth@oumail.openu.ac.il, chris.bitmead@bigfoot.com
  Subject: Re: [GENERAL] How to do this in SQL?
  In-Reply-To: <l03110710b3269a63e14c@[147.233.148.140]>
  References: <l0311070fb32695e2d222@[147.233.148.140]> <l03110710b3269a63e14c@[147.233.148.140]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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