Unix Technical Forum

Translation Number to full text

This is a discussion on Translation Number to full text within the Oracle Miscellaneous forums, part of the Oracle Database category; --> With the function TO_CHAR, I can transform a date on a full text depending on the NLS-Language. Is it ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008, 09:07 AM
philippe
 
Posts: n/a
Default Translation Number to full text

With the function TO_CHAR, I can transform a date on a full text
depending on the NLS-Language.
Is it possible to do the same with a number?
eg : 20 gives twenty, 200 gives two hundred...

thanks for your answers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2008, 09:07 AM
Ms. D.H. Harvey
 
Posts: n/a
Default Re: Translation Number to full text

,philippe <hay_tray@yahoo.fr> wrote:
: With the function TO_CHAR, I can transform a date on a full text
: depending on the NLS-Language.
: Is it possible to do the same with a number?
: eg : 20 gives twenty, 200 gives two hundred...

: thanks for your answers

http://asktom.oracle.com/~tkyte/Misc/SpellANumber.html

Helen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2008, 09:07 AM
Al Hetzel
 
Posts: n/a
Default Re: Translation Number to full text

Try this.

select to_char(to_date(54321, 'J'), 'JSP') from dual;

Al



On 21 Jul 2003 00:45:27 -0700, hay_tray@yahoo.fr (philippe) wrote:

>With the function TO_CHAR, I can transform a date on a full text
>depending on the NLS-Language.
>Is it possible to do the same with a number?
>eg : 20 gives twenty, 200 gives two hundred...
>
>thanks for your answers


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 09:07 AM
Ms. D.H. Harvey
 
Posts: n/a
Default Re: Translation Number to full text

,philippe <hay_tray@yahoo.fr> wrote:
: Thanks Helen

: but is it possible to get it in Spanish or an other language?

: if I wrote
: select to_char(to_date('15','J'),'Jsp','NLS_DATE_LANGUAGE = SPANISH') from
dual;

: I get
: Fifteen
: and I want to get
: Quince

Take a look at:

http://asktom.oracle.com/pls/ask/f?p...:NO::F4950_P8_
DISPLAYID,F4950_P8_CRITERIA:1407603857650,

This line will wrap and need to be joined back up.

HTH Helen

/\/\ /\/\ /\/\ /\/\ /\/\ /\/\ /\/\ /\/\ /\/\ /\/\ /\/\
( oo ) ( oo ) ( oo ) ( oo ) ( oo ) ( ** ) ( oo ) ( oo ) ( oo ) ( oo ) ( oo )
=^^= =^^= =^^= =^^= =^^= =^^= =^^= =^^= =^^= =^^= =^^=
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-07-2008, 09:08 AM
philippe
 
Posts: n/a
Default Re: Translation Number to full text

Thanks a lot, very good

Philippe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com