Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PostgreSQL UPDATE syntax
Message
De
24/02/2012 09:46:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
PostgreSQL UPDATE syntax
Divers
Thread ID:
01536425
Message ID:
01536425
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform