This seems like a very straightforward question but for some reason my mind is not there:
I am loading numbers into an oracle db. They are n digits in length and are all whole numbers ie 38495. I know from the file format that this number does not represent 38495 but instead 384.95
How to I insert the decimal two digits to the left of the right most digit?
When I do this:
select to_char(to_number('38495'),'999.99') from dual;
My result is this:
#######
Do I really need to substring this value? It seems like there should be a more elegant solution.
将整数除以100.0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.