Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PostgreSQL UPDATE syntax
Message
 
 
To
24/02/2012 09:46:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01536425
Message ID:
01536427
Views:
47
Try
update agreementitems
    set new_iagreementid = agreements.new_iagreementid
  inner join agreements on agreementitems.iagreementid = agreements.iagreementid
>
>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?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform