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

Home -> Community -> Usenet -> comp.databases.oracle -> Re: SQL Update with a Join Syntax

Re: SQL Update with a Join Syntax

From: --CELKO-- <jcelko212_at_earthlink.net>
Date: 7 Aug 2004 16:39:41 -0700
Message-ID: <18c7b3c2.0408071539.58aa8bdc@posting.google.com>


UPDATE NameInfo

   SET NameInfo.flag = 'OK'
 WHERE NameInfo.lastname = 'Smith'
   AND EXISTS

       (SELECT *
           FROM AddressInfo AS A1
         WHERE A1.civic_id = NameInfo.civic_id 
           AND A1.town = 'Moncton');

Read the other posting about the proper syntax for an UPDATE. Received on Sat Aug 07 2004 - 18:39:41 CDT

Original text of this message

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