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

Home -> Community -> Usenet -> c.d.o.misc -> Re: General SQL question

Re: General SQL question

From: Matvienko Rodion <mra99_at_mail.ru>
Date: Fri, 10 Mar 2000 14:39:59 +0200
Message-ID: <8aaqhj$eog$1@gts.lg.ua>


update mytable set colA = colB

   WHERE colB IS NOT null and


Allen <Allen_Brost-FAB101_at_email.mot.com> сообщил в новостях следующее:38BE83CC.5E927839_at_email.mot.com...
> Having some problems with syntax, maybe someone out there can help.
> I want to copy one column of a table to another column within the same
> table. The only criteria is that I do not want to copy the columns that
are
> null.
>
> update mytable set colA = colB
> WHERE colB != null and
>
>
> I keep getting 0 rows updated. What is the correct way to do this.
>
> Thanks.
>
Received on Fri Mar 10 2000 - 06:39:59 CST

Original text of this message

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