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: Is it possible to globally change a value in every column without doing an update on each one

Re: Is it possible to globally change a value in every column without doing an update on each one

From: Brian Peasland <peasland_at_edcmail.cr.usgs.gov>
Date: Thu, 9 Sep 1999 20:23:50 GMT
Message-ID: <37D81756.B1867B27@edcmail.cr.usgs.gov>


There is no single UPDATE command that will do this. The format of the update command is:

   UPDATE table
   SET column = value
   WHERE condition

By the syntax of the command, you can see that this is not possible. You will either have to issue the multiple update commands, or use SQL*Plus to format the output of the column (if that suits your needs)

HTH,
Brian

tony wrote:
>
> we have a table with 75 columns, a value of 999.9999 needs to be changed to
> 999.9 regardless of where it appears. Do we need to do an update on every
> single column or is it possible for one update column satement to do it?
Received on Thu Sep 09 1999 - 15:23:50 CDT

Original text of this message

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