<g.ces @pettra.es="">
<postgis-users @postgis.refractions.net="">
<br /></postgis-users></g.ces>
<div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font size="2" face="Arial">Hi all,</font></div>
<div> </div>
<div><font size="2" face="Arial"> Iīm trying to insert a column data ( double precision) from table p into another column b with two common columns( numerodist and numerosecc):</font></div>
<div> </div>
<div><font size="2" face="Arial">update b set areaB=(select p.areaP from p, b where p.numerodist=b.numerodist
<br />and p.numerosecc=b.numerosecc);</font></div>
<div> </div>
<div><font size="2" face="Arial">but this way i canīt because the result is a lot of rows, not a single one. How can i update my p table with the value of just one row of the first one? I know this is a sql question but i read the postgres reference and donīt know how to solve this.</font></div>
<div><font size="2" face="Arial">Thanks in advance,</font></div>
<div> </div>
<div><font size="2" face="Arial">Galois</font></div>
</blockquote></div>
<br />Do a google search for
<br />postgres where double precision equal
<br />
<br />Good look
<br />
<br />Humberto
<br />