Oracle improves the conversion of Arabic numerals into Chinese numerals

Source: Internet
Author: User

  This blog is their own in the study and work on the way to accumulate and summarize.

Convert Arabic numerals to Chinese characters, method custom function
  

  

Create or Replace function Formate (valinchNumber )returnVarchar2 isRes VARCHAR2 (6); BeginifVal=1Then res:='a'; Elsif Val=2Then res:='two'; Elsif Val=3Then res:='three'; Elsif Val=4Then res:='Four'; Elsif Val=5Then res:='Five'; Elsif Val=6Then res:='Six'; Elsif Val=7Then res:='Seven'; Elsif Val=8Then res:='Eight'; Elsif Val=9Then res:='Nine'; Elsif Val=TenThen res:='10'; Elsif Val= OneThen res:='11'; Elsif Val= AThen res:='12'; Elsif Val= -Then res:='13'; Elsif Val= -Then res:='14'; Elsif Val= theThen res:='15'; Elsif Val= -Then res:='16'; Elsif Val= -Then res:='17'; Elsif Val= -Then res:='18'; Elsif Val= -Then res:='19'; Elsif Val= -Then res:='20'; Elsif Val= -Then res:='21'; Elsif Val= -Then res:='22'; Elsif Val= -Then res:='23'; Elsif Val= -Then res:='24'; Elsif Val= -Then res:='25'; Elsif Val= -Then res:='26'; Elsif Val= -Then res:='27'; Elsif Val= -Then res:='28'; Elsif Val= -Then res:='29'; Elsif Val= -Then res:='30'; Elsif Val= -Then res:='31'; Elsif Val= -Then res:='32'; Elsif Val= -Then res:='33'; Elsif Val= -Then res:='34'; Elsif Val= -Then res:='35'; Elsif Val= -Then res:='36'; Elsif Val= -Then res:='37'; Elsif Val= -Then res:='38'; Elsif Val= -Then res:='39'; Elsif Val= -Then res:='40'; Elsif Val= -Then res:='41'; Elsif Val= -Then res:='42'; ElseRes:="'; Endif; returnRes;end;

If there is an extension, stack the elsif.

Oracle improves the conversion of Arabic numerals into Chinese numerals

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.