Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PostgreSQL UPDATE syntax
Message
From
24/02/2012 09:46:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
PostgreSQL UPDATE syntax
Miscellaneous
Thread ID:
01536425
Message ID:
01536425
Views:
70
Hi,

I'm using PostgreSQL and trying to run the following update:

update agreementitems
set agreementitems.new_iagreementid = agreements.new_iagreementid
from agreementitems inner join agreements on agreementitems.iagreementid = agreements.iagreementid

however, I get this error:

ERROR: table name "agreementitems" specified more than once

This syntax works in VFP (and I think in SQL Server). Can anyone suggest the syntax that PostgreSQL uses?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Next
Reply
Map
View

Click here to load this message in the networking platform