Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: how to do in Oracle field-- or field++
How about:
UPDATE some_table SET some_field = some_field+1; COMMIT; It works the old fashioned way!
HTH,
Brian
Francesco Marchioni wrote:
>
> Hello,
> I'd like to know if there are any shortcuts in
> oracle to do an UPDATE of a field by 1,
>
> like in C
> x++ or x--
>
> thanks
> Francesco
-- ======================================== Brian Peasland Raytheons Systems at USGS EROS Data Center These opinions are my own and do not necessarily reflect the opinions of my company! ========================================Received on Wed Mar 14 2001 - 07:50:47 CST
![]() |
![]() |