Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL update question

Re: SQL update question

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Tue, 9 Mar 1999 18:09:59 +0100
Message-ID: <36e555e9$0$12014@pascal>


Mike Ellenbecker wrote
>unquie id to both tables FID
>1 update sw_filemgm
>2 set sw_filemgm.longitude = (select sw_upload.longitude
>3 from sw_upload)
>4 where sw_filemgm.fid = sw_upload.fid;

sw_upload.fid is used out of scope. It is only known in the subquery:

    update sw_filemgm
    set sw_filemgm.longitude =

        ( select sw_upload.longitude
          from sw_upload
          where sw_filemgm.fid = sw_upload.fid
        );

Arjan. Received on Tue Mar 09 1999 - 11:09:59 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US