Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Update Problem
Wrong syntax of UPDATE.
Try this:
update oldtransactions
set custid = (select custid from transactions where cc = oldtransactions.cc);
Regards,
Dmitriy Agafonov
Satar Naghshineh wrote:
> hi
> What are we doing wrong?
>
> update oldtransactions
> set custid = transactions.custid
> where oldtransactions.cc = transactions.cc
> *
> ORA-00904: Invalid Column Name
>
> cc is a column in a table called transactions, so why is Oracle giving
>
> us this message?
>
> Thanks in Advance,
> Satar Naghshineh
Received on Tue Sep 23 1997 - 00:00:00 CDT