short sql question - Mailing list pgsql-general

From goldgraeber-werbetechnik@t-online.de
Subject short sql question
Date
Msg-id wolfgang-1210618091529.A0132500@linux-tuxedo
Whole thread Raw
Responses Re: short sql question  ("Georg H." <georg-h@silentrunner.de>)
List pgsql-general
Hi,

I just cannot see what is wrong with my query:

create table files (id int, name text, prev_name text, ....);
create table fnchanged (id int, name text);

update files f set prev_name = f.name, name = c.name from fnchanges c where f.id = c.id and c.name != f.name

--- gets syntax error at "from"

(Using PostgreSQL 10.4 on a NAS box)

Best regards
Wolfgang





pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: A simple question about text fields
Next
From: "Georg H."
Date:
Subject: Re: short sql question