Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 456 Bytes

add-leading-zero-to-query-data.rst

File metadata and controls

17 lines (10 loc) · 456 Bytes

Add Leading Zero to Query Data

Java String Object will remove the leading zero if a number is returned without formatting

fix:

RTRIM(TO_CHAR(PLAN_RATE, 'FM99990D99'), '.') PLAN_RATE

reference:

http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm
http://www.techonthenet.com/oracle/functions/rtrim.php