All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
将Web页转换为ASP.NET 2.0用户控件
Sql,Server数据库定时自动备份_[SQL,Server教程]
GDI+ 坐标系类型
Visual,C#,2005快速入门之编写方法_[Asp.Net教程]
ExtJS与.NET结合开发实例(Grid之数据显示、分页、排序篇)_[Asp.Net教程]
使用AJAX技术打造博客无刷新搜索引擎_[AJAX教程]
关于C#中的DateTime类型的细节问题_.net资料_编程技术
保护你的DLL和Code不被别人使用_[Asp.Net教程]
将内容自动添加到指定文本域的JS_[Html教程]
使用C#来开发.NET,CF,蓝牙通信模块_.net资料_编程技术
Reading number is top 10 pictures
Rendez-vous Sleep with actress, three days to earn 600000
徐若瑄展示美丽胸围1
yy365网站上的美女2
这还能睡得着?
南昌铁路局宜春车务段攸县车站铁路职工福利房被开发商侵占
The money of more than 100 countries and regions14
yy365网站上的美女3
Soong ching ling's former residence2
No trading, no killing
超级大兔子
Download software ranking
WebService在.NET中的实战应用教学视频 → 第4集
asp.net技术内幕
Tram sex maniac 2 (H) rar bag6
Sora aoi, the nurse, uniform ,nursing assistant
Boxer vs Yellow4
艳兽都市
Dance with duck(male prostitution)
好色的外科大夫
虚拟机5.5.3版
Desire a peach blossom
归海一刀 published in(发表于) 2014/2/3 6:36:22 Edit(编辑)
SQL Server2005数字转中文大写字母_[SQL Server教程]

SQL Server2005数字转中文大写字母_[SQL Server教程]

SQL Server2005数字转中文大写字母_[SQL Server教程]
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
alter FUNCTION [dbo].[fn_numToChn] (@num numeric(14,2))
RETURNS nvarchar(100)
AS
BEGIN
--版权所有:ahshow
DECLARE @n_data nVARCHAR(20),@c_data nVARCHAR(100),@n_str nVARCHAR(10),@i int

SET @n_data=RIGHT(SPACE(14)+CAST(CAST(ABS(@num*100) AS bigint) AS nvarchar(20)),14)
SET @c_data= ’’
SET @i=1
WHILE @i <=14
BEGIN
SET @n_str=SUBSTRING(@n_data,@i,1)
IF @n_str <> ’’
BEGIN
IF not ((SUBSTRING(@n_data,@i,2)= ’00’) or
((@n_str= ’0’) and ((@i=4) or (@i=8) or (@i=12) or (@i=14))))
SET @c_data=@c_data+SUBSTRING( N’零壹贰叁肆伍陆柒捌玖’,CAST(@n_str AS int)+1,1)
IF not ((@n_str= ’0’) and (@i <> 4) and (@i <> 8) and (@i <> 12))
SET @c_data=@c_data+SUBSTRING( N’仟佰拾亿仟佰拾万仟佰拾圆角分’,@i,1)
IF SUBSTRING(@c_data,LEN(@c_data)-1,2)= N’亿万’
SET @c_data=SUBSTRING(@c_data,1,LEN(@c_data)-1)
END
SET @i=@i+1
END
IF @num <0
SET @c_data= ’(负数)’+@c_data
IF @num=0
SET @c_data= ’零圆’
IF @n_str= ’0’
SET @c_data=@c_data+ ’元整’
RETURN(@c_data)
END


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.