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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: HELP WITH UPDATE

Re: HELP WITH UPDATE

From: Jack van Zanen <nlzanen1_at_ey.nl>
Date: Tue, 25 Jul 2000 13:21:29 +0100
Message-Id: <10569.112852@fatcity.com>


Hi

you could try something like this

update emp set empno = 99||substr(to_char(kol1),3)

Jack

"Suhen Pather" <pathers5_at_telkom.co.za>@fatcity.com on 07/25/2000 11:54:10 AM

Please respond to ORACLE-L_at_fatcity.com

Sent by: root_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:
Subject: HELP WITH UPDATE

Hi

I have a table called EMP

EMPNO           NAME                JOB
001                  Scott                  DBA
002                  Tiger                  DEV
003                   King                  MAN

......
0010 Arthur PROG

If I need to update the column EMPNO and change all the values in the beginning from 00 to 99.
So the table will look like

EMPNO           NAME                JOB
991                  Scott                  DBA
992                  Tiger                  DEV
993                   King                  MAN

......
9910 Arthur PROG

How can I update the table EMP's column EMPNO and change all the values from 00 to 99 in one go without doing each update manually.

TIA
$uhen

--
Author: Suhen Pather
  INET: pathers5_at_telkom.co.za

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).





===================================================================
De informatie verzonden met dit E-mail bericht is uitsluitend bestemd voor
de geadresseerde. Gebruik van deze informatie door anderen dan de
geadresseerde is verboden. Openbaarmaking, vermenigvuldiging, verspreiding
en/of verstrekking van deze informatie aan derden is niet toegestaan.
Ernst & Young staat niet in voor de juiste en volledige overbrenging van de
inhoud van een verzonden E-mail, noch voor tijdige ontvangst daarvan.
===================================================================
The information contained in this communication is confidential and may be
legally privileged. It is intended solely for the use of the individual or
entity to whom it is addressed and others authorised to receive it. If you
are not the intended recipient you are hereby notified that any disclosure,
copying,  distribution or taking any action in reliance on the contents of
this information is strictly prohibited and may be unlawful. Ernst &
Young is neither liable  for the proper and complete transmission of the
information contained in this communication nor for any delay in its
Received on Tue Jul 25 2000 - 07:21:29 CDT

Original text of this message

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