strange update behavior - Mailing list pgsql-sql

From Volkmar Herbst GCI
Subject strange update behavior
Date
Msg-id 006b01cbfa15$41ec1800$c5c44800$@de
Whole thread Raw
List pgsql-sql
<div class="WordSection1"><p class="MsoNormal"> <p class="MsoNormal"><span lang="EN-US">I did encounter a quite strange
behaviorduring update which I did not understand:</span><p class="MsoNormal"><span lang="EN-US"> </span><p
class="MsoNormal"><spanlang="EN-US">The following query updated table parcelle with only one entry for all
rows:</span><pclass="MsoNormal"><span lang="FR">update cadastre.parcelle </span><p class="MsoNormal"
style="text-indent:35.4pt"><spanlang="FR">set code_unique = t2.code_unique  from  </span><p class="MsoNormal"
style="margin-left:35.4pt;text-indent:35.4pt"><spanlang="FR">cadastre.parcelle t1, cadastre.propriete t2 </span><p
class="MsoNormal"style="margin-left:35.4pt;text-indent:35.4pt"><span lang="FR">where t1.uoid =
t2.uoidparcelle;</span><pclass="MsoNormal"><span lang="FR"> </span><p class="MsoNormal"><span lang="EN-US">the next
updatequery behaved as expected :</span><p class="MsoNormal"><span lang="FR">update cadastre.parcelle </span><p
class="MsoNormal"style="text-indent:35.4pt"><span lang="FR">set code_unique = t2.code_unique  from  </span><p
class="MsoNormal"style="margin-left:35.4pt;text-indent:35.4pt"><span lang="FR">cadastre.parcelle t1, cadastre.propriete
t2</span><p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span lang="FR">where parcelle.uoid =
t2.uoidparcelle;</span><pclass="MsoNormal"><span lang="FR"> </span><p class="MsoNormal"><span lang="EN-US">Why do i
haveto reference table parcelle in the where clause?</span><p class="MsoNormal"><span lang="EN-US"> </span></div> 

pgsql-sql by date:

Previous
From: Anish Kejariwal
Date:
Subject: Re: pass in array to function for use by where clause? how optimize?
Next
From: f vf
Date:
Subject: Get id of a tuple using exception