using ansi sql syntax for formatting Numeric

Posted by changed on Stack Overflow See other posts from Stack Overflow or by changed
Published on 2010-06-09T16:19:12Z Indexed on 2010/06/09 16:22 UTC
Read the original article Hit count: 208

Filed under:
|

Hi

I am using two different databases for my project. Oracle and apache derby and trying to use as much as possible ansi sql syntax supported by both of the databases.

I have a table with column amount_paid NUMERIC(26,2), in a table.

My old code which was using oracle db need to retrieve value in this format

SELECT LTRIM(TO_CHAR(amount_paid,'9,999,999,999,999.99')) .

How can i do this using ANSI sql syntax.

© Stack Overflow or respective owner

Related posts about formatting

Related posts about ansi-sql