Re: Add columns to table; insert values based on row

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Add columns to table; insert values based on row
Date: 2018-11-02 12:28:58
Message-ID: alpine.LNX.2.20.1811020528350.21506@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 1 Nov 2018, Ken Tanzer wrote:

> I'm not sure what format your text file is in, but you could probably use
> \copy to bring it into a (temporary) table in Postgres. As long as it had
> your four new columns and the site_nbr, you could then update from that
> table in one swoop:

Ken,

Thank you.

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2018-11-02 12:38:45 Re: cannot find PGXS file when installing an extension?
Previous Message Luca Ferrari 2018-11-02 12:16:43 Re: cannot find PGXS file when installing an extension?