From: | Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il> |
---|---|
To: | Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] How to do this in SQL? |
Date: | 1999-03-30 15:13:48 |
Message-ID: | l03110710b3269a63e14c@[147.233.148.140] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Stuart Rison | 1999-03-30 15:50:12 | Re: [GENERAL] How to do this in SQL? |
Previous Message | Chris Bitmead | 1999-03-30 15:03:37 | Re: [GENERAL] How to do this in SQL? |
From | Date | Subject | |
---|---|---|---|
Next Message | Stuart Rison | 1999-03-30 15:50:12 | Re: [GENERAL] How to do this in SQL? |
Previous Message | Chris Bitmead | 1999-03-30 15:03:37 | Re: [GENERAL] How to do this in SQL? |