need help with a simple SQL update statement.

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-03-31T06:32:25Z Indexed on 2010/03/31 6:33 UTC
Read the original article Hit count: 224

Filed under:
|
|

There's a field with type of varchar. It actually stores a float point string. Like 2.0 , 12.0 , 34.5 , 67.50 ... What I need is a update statement that remove the ending zeros of fields like 2.0 , 12.0 , change them to their integer representation , that is 2 , 12 ...,and leave 3.45 , 67.50 unchanged . How should I do this ? I am using oracle 10.

© Stack Overflow or respective owner

Related posts about sql

Related posts about Oracle