小寫轉大寫金額 SQLSERVER

2021-04-17 04:35:53 字數 595 閱讀 2434

原作在sql2000中有一些問題。修正錯誤並在sql2000中執行通過。

setnocounton

select@v_lowerstr=ltrim(rtrim(str(@n_lowermoney,20,2)))--四捨五入為指定的精度並刪除資料左右空格

select@i_i=1

select@v_upperstr='

while(@i_i<=len(@v_lowerstr))

begin

select@v_upperpart=casesubstring(@v_lowerstr,len(@v_lowerstr)-@i_i+1,1)

when '.'then '元'

when '0'then '零'

when '1'then '壹'

when '2'then '貳'

when '3'then '叄'

when '4'then '肆'

when '5'then '伍'

when '6'then '陸'

when '7'then '柒'

when '8'then '捌'

when '9'then '玖'1

金額小寫轉大寫

create procedure dbo trannumbertobigfordecrypt n lowermoney numeric 15,2 v transtype int,ret varchar 200 output with encryption as descript 解密exec sp ...

金額小寫轉大寫

create procedure dbo trannumbertobigfordecrypt n lowermoney numeric 15,2 v transtype int,ret varchar 200 output with encryption as descript 解密exec sp ...

ORACLE 小寫金額轉大寫金額

create or replace function money2chinese money in number return varchar2 is stryuan varchar2 150 stryuanfen varchar2 152 numlenyuan number numlenyuanf...