INSERTS and Queries

From: "C G" <csgcsg39(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: INSERTS and Queries
Date: 2004-03-01 13:36:35
Message-ID: BAY15-F49zJ9skB47qX00016155@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear All,

I can use insert with 'select' if I do this

INSERT INTO TABLE t1 (col1) SELECT stuff FROM t2;

But I want to insert more than one thing into the table, e.g.

INSERT INTO TABLE t1 (col1,col2) SELECT stuff FROM t2 , 100;

Any ideas on how I would achieve this?

Thanks

Colin

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today!
http://www.msn.co.uk/messenger

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Russ Brown 2004-03-01 13:44:27 Re: INSERTS and Queries
Previous Message Karam Chand 2004-03-01 12:16:52 Re: List of reserved keywords and function names in PostgreSQL