Copying

From: Jake Stride <nsuk(at)users(dot)sourceforge(dot)net>
To: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Copying
Date: 2004-09-10 06:36:17
Message-ID: BD6709F1.33BB%nsuk@users.sourceforge.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

I have had a look at the docs but, correct me if I am wrong, cannot find a
way to select data into an existing table. I have looked at select into and
copy.

I have a table (called assests):

Id/name/jobno

Where id is a primary key/serial.

What I want to be able to do is:

SELECT name, 3 FROM assets <<INTO>> assets

Since id is a serial/has a default value you don't need to worry about it
(iei the database should take care of it).

Thanks

Jake

Responses

  • Re: Copying at 2004-09-10 06:58:37 from Michael Glaesemann

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Glaesemann 2004-09-10 06:58:37 Re: Copying
Previous Message Pradeepkumar, Pyatalo (IE10) 2004-09-10 04:31:13 Re: how to overwrite tuples in a table