From: Josh Berkus <josh@agliodbs.com>
To: Fredrik Thunberg <fredrik@datessa.se>
To: pgsql-sql@postgresql.org
Subject: Re: Simple SQL-syntax
Date: Mon, 20 Aug 2001 08:13:05 -0700
Message-ID: <web-105060@davinci.ethosmedia.com> (raw)
In-Reply-To: <01a501c12969$6e397a10$7100000a@intern.datessa.se>
Fredrik,
> I have a very simple sql-question from an sql-beginner:
Sure. Keep in mind that there is a pgsql-newbie list. Also quite a few
good books on the topic, including: Database Design for Mere Mortals and
SQL for Smarties.
> Then I want to change all occurences of NrA in Table A to NrB...
>
> I've tried:
>
UPDATE tableA Set tableA.nrA = B.nrB
From tableB B Where tableA.nrA = B.nrA;
This should work. What error message are you getting? And what version
of Postgres are you using?
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, fredrik@datessa.se
Subject: Re: Simple SQL-syntax
In-Reply-To: <web-105060@davinci.ethosmedia.com>
* 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