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: Oracle Update Syntax

Re: Oracle Update Syntax

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Mon, 21 Aug 2006 22:24:02 +0200
Message-ID: <ecd4g5$76d$1@news3.zwoll1.ov.home.nl>


BS schreef:
> Group,
>
> What is wrong here with the syntaxt can someone help me?
>
> 1 update po_vendors
> 2 set po_vendors.attribute3 = to_char(contractorimport.contractorid)
> 3 from contractorimport , po_vendors
> 4* where po_vendors.num_1099 = contractorsimport.ssnnumber
> SQL> /
> from contractorimport , po_vendors
> *
> ERROR at line 3:
> ORA-00933: SQL command not properly ended
>
> Thanks
>

You miss a select, you should have something along the line of:
update po_vendors
set po_vendors.attribute3 =

   select to_char(contractorimport.contractorid)    from contractorimport
   where po_vendors.num_1099 = contractorsimport.ssnnumber

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Mon Aug 21 2006 - 15:24:02 CDT

Original text of this message

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