Re: Update Query Problem

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Charley Tiggs <ctiggs(at)xpressdocs(dot)com>
Cc: "<operationsengineer1(at)yahoo(dot)com>" <operationsengineer1(at)yahoo(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Update Query Problem
Date: 2005-12-13 17:49:20
Message-ID: 20051213174920.GA12334@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, Dec 13, 2005 at 11:37:00AM -0600, Charley Tiggs wrote:
> There needs to be a reference to t_serial_number in the update clause:
>
> UPDATE t_job_number, t_serial_number
> SET contract_id = 30
> WHERE t_serial_number.serial_number_id = 78
> AND t_serial_number.job_number_id =
> t_job_number.job_number_id

No version of PostgreSQL that I tested (7.3 and later) allows that
syntax, and it's not shown in the documentation.

ERROR: syntax error at or near "," at character 20
LINE 1: UPDATE t_job_number, t_serial_number
^

--
Michael Fuhr

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Charley Tiggs 2005-12-13 17:51:48 Re: Update Query Problem
Previous Message Andreas Kretschmer 2005-12-13 17:43:55 Re: Update Query Problem