<div dir="ltr">I need some help figuring out how to update a table. I'm trying to get the polygon id that a node resides in. I have two tables, one of outlines and another with nodes. I want to add the id of the outline the node is contained in to the node.<div>

<br></div><div>my thought was this query:</div><div style>update nodes set outline_id = (select outline_id from oulines, nodes where st_contains(outline.geom, nodes,geom))</div><div style><br></div><div style>But this query returns more than one row. What am I doing wrong?</div>

<div><div><br></div><div style>Thanks</div>-- <br><div>Clifford</div><div><br></div>
</div></div>