Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get easily numeric format value of nls_iso_currency ?

panzer_hierMar 31 2020 — edited Mar 31 2020

Hello ! Could you please answer the following question - how to get 'USD' or other value for numbers based on nls_iso_currency parameter's value ? I guess it is possible to use regexp or something like that functions like:

  1  select regexp_replace (one_usd,'[0-9]+') from

  2  (

  3  select to_char (1000,'9999c') as one_usd from dual

  4* )

But is there more simple way like select nls_iso_currency_value from dual ;

And how to place space between the number and 'USD', for example ?

Thank you very much in advance

Dmitry

Comments
Post Details
Added on Mar 31 2020
4 comments
674 views