Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: NUMBER TO WORDS

Re: NUMBER TO WORDS

From: Dave Wotton <Dave.Wotton_at_dwotton.nospam.clara.co.uk>
Date: 2000/03/23
Message-ID: <aPuC4.2868$Eq.50201@nnrp4.clara.net>#1/1

denunez wrote in message <11c3f80c.f17e295b_at_usw-ex0102-013.remarq.com>...
>I NEED TO KNOW HOW CAN I CHANGE DE LANGUAGE OF THE RESULT OF
>THIS SQL:
>select to_char(to_date(123,'J'),'jsp') from dual
>RETURNS
>one hundred twenty-three
>
>I WANT THE RESULT IN ANOTHER LANGUAGE LIKE SPANISH:
Neat idea, but I don't think it's possible using standard Oracle functions.

You'd have thought adding the NLS format would do it ....

select to_char(to_date(123,'J'),'jsp','NLS_DATE_LANGUAGE=SPANISH')

       from dual;

but the manual (Oracle7 Server SQL Reference) says:

    "When you add one of these suffixes (SP) to a date format element,      the return value is always in English."

Don't know about Oracle8.

It wouldn't be too hard to write your own function to convert numbers to words using PL/SQL. It's the only thing I can think of.

Dave.

--
There's no need to reply to this posting by email, but if you do,
remove the "nospam" from my email address first.
Received on Thu Mar 23 2000 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US