Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luCJu-0002Nt-KA for pgsql-general@arkaria.postgresql.org; Fri, 18 Jun 2021 11:05:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1luCJr-0006Zl-Rs for pgsql-general@arkaria.postgresql.org; Fri, 18 Jun 2021 11:05:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lu8j1-000562-Ix for pgsql-general@lists.postgresql.org; Fri, 18 Jun 2021 07:15:35 +0000 Received: from mailout06.t-online.de ([194.25.134.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lu8iz-00042d-OR for pgsql-general@lists.postgresql.org; Fri, 18 Jun 2021 07:15:35 +0000 Received: from fwd30.aul.t-online.de (fwd30.aul.t-online.de [172.20.26.135]) by mailout06.t-online.de (Postfix) with SMTP id 1A041CF8B2 for ; Fri, 18 Jun 2021 09:15:31 +0200 (CEST) Received: from musicman.homeip.net (ZquSpUZSQhi2-3Zsy6jkXUhq5PjFxelmw5+h-9aKitySLFN4QgdjKb44EbGpo75g+j@[193.159.74.232]) by fwd30.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1lu8ix-0t0KY40; Fri, 18 Jun 2021 09:15:31 +0200 Received: (qmail 24725 invoked by uid 1000); 18 Jun 2021 07:15:29 -0000 Date: 18 Jun 2021 07:15:29 -0000 Subject: short sql question To: pgsql-general@lists.postgresql.org From: goldgraeber-werbetechnik@t-online.de Message-Id: X-Mailer: TkMail 4.0beta9 Content-type: text/plain; charset=utf-8 X-ID: ZquSpUZSQhi2-3Zsy6jkXUhq5PjFxelmw5+h-9aKitySLFN4QgdjKb44EbGpo75g+j X-TOI-EXPURGATEID: 150726::1624000531-0000D63F-40F7F947/0/0 CLEAN NORMAL X-TOI-MSGID: b3054355-c3d5-4b71-8129-2d5ac5236641 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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