<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問(wèn)答1問(wèn)答10問(wèn)答100問(wèn)答1000問(wèn)答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問(wèn)答文章1 問(wèn)答文章501 問(wèn)答文章1001 問(wèn)答文章1501 問(wèn)答文章2001 問(wèn)答文章2501 問(wèn)答文章3001 問(wèn)答文章3501 問(wèn)答文章4001 問(wèn)答文章4501 問(wèn)答文章5001 問(wèn)答文章5501 問(wèn)答文章6001 問(wèn)答文章6501 問(wèn)答文章7001 問(wèn)答文章7501 問(wèn)答文章8001 問(wèn)答文章8501 問(wèn)答文章9001 問(wèn)答文章9501
        當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

        OracleSQL金額小寫轉(zhuǎn)大寫函數(shù)

        來(lái)源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-09 16:09:28
        文檔

        OracleSQL金額小寫轉(zhuǎn)大寫函數(shù)

        OracleSQL金額小寫轉(zhuǎn)大寫函數(shù):原文鏈接:http://www.cnblogs.com/Ira_Young/archive/2009/11/11/1601168.html 無(wú) Create Or Replace Function Money2Chinese(Money In Number) Return Varchar2 Is strYuan Varchar2(150); strYu
        推薦度:
        導(dǎo)讀OracleSQL金額小寫轉(zhuǎn)大寫函數(shù):原文鏈接:http://www.cnblogs.com/Ira_Young/archive/2009/11/11/1601168.html 無(wú) Create Or Replace Function Money2Chinese(Money In Number) Return Varchar2 Is strYuan Varchar2(150); strYu

        原文鏈接:http://www.cnblogs.com/Ira_Young/archive/2009/11/11/1601168.html 無(wú) Create Or Replace Function Money2Chinese(Money In Number) Return Varchar2 Is strYuan Varchar2(150); strYuanFen Varchar2(152); numLenYuan Number; numLenYuanFen Num

        原文鏈接:http://www.cnblogs.com/Ira_Young/archive/2009/11/11/1601168.html <無(wú)> $velocityCount-->
        Create Or Replace Function Money2Chinese(Money In Number) Return Varchar2 Is
         strYuan Varchar2(150);
         strYuanFen Varchar2(152);
         numLenYuan Number;
         numLenYuanFen Number;
         strRstYuan Varchar2(600);
         strRstFen Varchar2(200);
         strRst Varchar2(800);
         Type typeTabMapping Is Table Of Varchar2(2) Index By Binary_Integer;
         tabNumMapping typeTabMapping;
         tabUnitMapping typeTabMapping;
         numUnitIndex Number;
         i Number;
         j Number;
         charCurrentNum Char(1);
        Begin
         If Money Is Null Then
         Return Null;
         End If;
         strYuan := TO_CHAR(FLOOR(Money));
         If strYuan = '0' Then
         numLenYuan := 0;
         strYuanFen := lpad(TO_CHAR(FLOOR(Money * 100)), 2, '0');
         Else
         numLenYuan := length(strYuan);
         strYuanFen := TO_CHAR(FLOOR(Money * 100));
         End If;
         If strYuanFen = '0' Then
         numLenYuanFen := 0;
         Else
         numLenYuanFen := length(strYuanFen);
         End If;
         If numLenYuan = 0 Or numLenYuanFen = 0 Then
         strRst := '零圓整';
         Return strRst;
         End If;
         tabNumMapping(0) := '零';
         tabNumMapping(1) := '壹';
         tabNumMapping(2) := '貳';
         tabNumMapping(3) := '叁';
         tabNumMapping(4) := '肆';
         tabNumMapping(5) := '伍';
         tabNumMapping(6) := '陸';
         tabNumMapping(7) := '柒';
         tabNumMapping(8) := '捌';
         tabNumMapping(9) := '玖';
         tabUnitMapping(-2) := '分';
         tabUnitMapping(-1) := '角';
         tabUnitMapping(1) := '';
         tabUnitMapping(2) := '拾';
         tabUnitMapping(3) := '佰';
         tabUnitMapping(4) := '仟';
         tabUnitMapping(5) := '萬(wàn)';
         tabUnitMapping(6) := '拾';
         tabUnitMapping(7) := '佰';
         tabUnitMapping(8) := '仟';
         tabUnitMapping(9) := '億';
         For i In 1 .. numLenYuan Loop
         j := numLenYuan - i + 1;
         numUnitIndex := Mod(i, 8);
         If numUnitIndex = 0 Then
         numUnitIndex := 8;
         End If;
         If numUnitIndex = 1 And i > 1 Then
         strRstYuan := tabUnitMapping(9) || strRstYuan;
         End If;
         charCurrentNum := substr(strYuan, j, 1);
         If charCurrentNum <> 0 Then
         strRstYuan := tabNumMapping(charCurrentNum) ||
         tabUnitMapping(numUnitIndex) || strRstYuan;
         Else
         If (i = 1 Or i = 5) Then
         If substr(strYuan, j - 3, 4) <> '0000' Then
         strRstYuan := tabUnitMapping(numUnitIndex) || strRstYuan;
         End If;
         Else
         If substr(strYuan, j + 1, 1) <> '0' Then
         strRstYuan := tabNumMapping(charCurrentNum) || strRstYuan;
         End If;
         End If;
         End If;
         End Loop;
         For i In -2 .. -1 Loop
         j := numLenYuan - i;
         charCurrentNum := substr(strYuanFen, j, 1);
         If charCurrentNum <> '0' Then
         strRstFen := tabNumMapping(charCurrentNum) || tabUnitMapping(i) ||
         strRstFen;
         End If;
         End Loop;
         If strRstYuan Is Not Null Then
         strRstYuan := strRstYuan || '圓';
         End If;
         If strRstFen Is Null Then
         strRstYuan := strRstYuan || '整';
         Elsif length(strRstFen) = 2 And substr(strRstFen, 2) = '角' Then
         strRstFen := strRstFen || '整';
         End If;
         strRst := strRstYuan || strRstFen;
         --strRst := Replace(strRst, '億零', '億');
         --strRst := Replace(strRst, '萬(wàn)零', '萬(wàn)');
         Return strRst;
        End Money2Chinese;

        聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        OracleSQL金額小寫轉(zhuǎn)大寫函數(shù)

        OracleSQL金額小寫轉(zhuǎn)大寫函數(shù):原文鏈接:http://www.cnblogs.com/Ira_Young/archive/2009/11/11/1601168.html 無(wú) Create Or Replace Function Money2Chinese(Money In Number) Return Varchar2 Is strYuan Varchar2(150); strYu
        推薦度:
        標(biāo)簽: 鏈接 金額 小寫
        • 熱門焦點(diǎn)

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 亚洲精品尤物yw在线影院| 日韩av无码成人无码免费| 九一在线完整视频免费观看| 美女被艹免费视频| 国产JIZZ中国JIZZ免费看| 无码人妻AV免费一区二区三区| 国产va免费精品观看精品| 免费一级毛片一级毛片aa| 亚洲AV成人片色在线观看高潮 | 亚洲欧洲中文日韩av乱码| 黄页网址在线免费观看| 成人亚洲网站www在线观看| 亚洲精品日韩中文字幕久久久| 亚洲中文字幕AV在天堂| 婷婷亚洲综合五月天小说在线 | 久久亚洲国产精品成人AV秋霞 | 亚洲综合图片小说区热久久| 91禁漫免费进入| 亚洲精品网站在线观看不卡无广告| 色吊丝性永久免费看码| 精品国产免费一区二区| 久久久久亚洲精品成人网小说| 久久精品成人免费观看| 国产亚洲自拍一区| 亚洲AV无码之国产精品| 久久国产免费福利永久| 亚洲欧洲∨国产一区二区三区 | 人妖系列免费网站观看| 亚洲中文字幕久久精品无码APP | 亚洲区视频在线观看| 日本免费久久久久久久网站| 亚洲成人网在线观看| 免费视频成人片在线观看| 久久综合亚洲色HEZYO国产| 玖玖在线免费视频| 国产性爱在线观看亚洲黄色一级片| 中文字幕手机在线免费看电影 | 日韩精品内射视频免费观看| 国产成人精品日本亚洲18图| 亚洲Av无码国产情品久久 | 亚洲卡一卡2卡三卡4卡无卡三|