if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[fun_getbh]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[fun_getbh]
GO/*--得到汉字笔画得到指定汉字的笔画数
*/
create function fun_getbh(@char nchar(2))
returns int
as
begin
return(case when unicode(@char) between 19968 and 40869 then(select top 1 id from(select id=1,ch=N'亅'      union all select 2,N'阝' union all select 3,N'马'  union all select 4,N'风' union all select 5,N'龙'  union all select 6,N'齐' union all select 7,N'龟'  union all select 8,N'齿' union all select 9,N'鸩'  union all select 10,N'龀' union all select 11,N'龛' union all select 12,N'龂' union all select 13,N'龆' union all select 14,N'龈' union all select 15,N'龊' union all select 16,N'龍' union all select 17,N'龠' union all select 18,N'龎' union all select 19,N'龐' union all select 20,N'龑' union all select 21,N'龡' union all select 22,N'龢' union all select 23,N'龝' union all select 24,N'齹' union all select 25,N'龣' union all select 26,N'龥' union all select 27,N'齈' union all select 28,N'龞' union all select 29,N'麷' union all select 30,N'鸞' union all select 31,N'麣' union all select 32,N'龖' union all select 33,N'龗' union all select 35,N'齾' union all select 36,N'齉' union all select 39,N'靐' union all select 64,N'龘' )a where ch>=@char collate Chinese_PRC_Stroke_CS_AS_KS_WSorder by id ASC) else 0 end)
end
go--函数调用实例:
select dbo.fun_getbh('华'),dbo.fun_getbh('華')

43.自动获取汉子笔画相关推荐

  1. vue 验证公民身份证号 并 自动 获取 性别、年龄、生日

    vue 验证公民身份证号 并 自动 获取 性别.年龄.生日 第一种方式: <template><el-form :model="baseInfo" ref=&qu ...

  2. 从ftp、tftp自动获取文件的脚本

    从ftp自动获取文件的脚本 1, #!/bin/sh F="xxxx.ftp" echo "open 192.168.7.51 21"     > $F ...

  3. 网页自动获取题目匹配题库答案填充(原创1.0)

    /***欢迎使用网页自动获取题目匹配题库答案填充(原创1.0)**1.可手动添加本地题库,一键复制,无序key自动匹配,2.通过调试可获取相应div类下的值/元素3.遍历实现多选,可在console中 ...

  4. Python 之自动获取公网IP

    Python 之自动获取公网IP 2017年9月30日 文档下载:https://wenku.baidu.com/view/ff40aef7f021dd36a32d7375a417866fb84ac0 ...

  5. vue 验证公民身份证号 并 自动 获取 性别、年龄、生日

    vue 验证公民身份证号 并 自动 获取 性别.年龄.生日 第一种方式: <template><el-form :model="baseInfo" ref=&qu ...

  6. php yii2自动给值,Yii2基于Ajax自动获取表单数据的方法

    本文实例讲述了Yii2基于Ajax自动获取表单数据的方法.分享给大家供大家参考,具体如下: 这里有两张表,表结构如下,locations表存放的省份和邮编等信息,两张表的model和curd均使用gi ...

  7. SAP WM 针对采购订单收货时候不能自动获取物料主数据里的Special Movement Indicator?

    SAP WM 针对采购订单收货时候不能自动获取物料主数据里的Special Movement Indicator? SAP WM模块里有一个标记叫做Special Movement Indicator ...

  8. dedecms 自动获取缩略图

    修改/dede 目录下的article_add_action.php 和article_eidt_action.php 两个文件,在文件中找到//自动获取缩略图 这一段代码.改为以下部分,自动取第一张 ...

  9. CentOS 7如何设置Linux开机自动获取IP地址

    centos7 minimal版默认安装好后没有获取ip地址,需要手动配置.方法如下: 1.输入"ip addr"并按回车键确定,发现无法获取IP(CentOS 7默认没有ifco ...

最新文章

  1. IIC通信控制的AD5259------在调试过程中遇到的奇葩问题
  2. python web开发框架flask_Python Web 开发框架,Flask 与 Django那个更好
  3. .NET 数据访问架构指南(转)
  4. Robotium_断言方法assert、is、search
  5. 机器学习实战4-sklearn训练线性回归模型(鸢尾花iris数据集分类)
  6. 又烧一辆!蔚来ES8车库夜里起火 两个半小时才熄灭:现场惨烈
  7. 微课|中学生可以这样学Python(例11.1):tkinter电子时钟程序(1)
  8. 【内存检测系列】window下windbg内存泄漏检查
  9. MAC常用命令和常用软件列表
  10. module ‘cv2‘ has no attribute ‘SIFT‘
  11. python中file是什么意思_Python中的file和open用法详解
  12. [GAMES101]现代计算机图形学课程总结2:光栅化和反走样
  13. matlab求非线性方程的根,求非线性方程的根
  14. 前端页面模拟浏览器搜索功能Ctrl+F实现
  15. rovisional headers are shown Learn more 报错
  16. IDEA安装MAVEN
  17. java导出pdf字体宋体不加粗_java – 飞碟(xhtmlrenderer)没有加粗我的字体?
  18. c4d中的语言菜单,C4D的菜单(选择)
  19. 刚走上工作岗位的程序员——如何看待业务和技术
  20. rv1126和PC之间的数据交流(windows)

热门文章

  1. 购买阿里云服务器ECS快速上云
  2. 几种室内定位技术方案对比,室内定位种类的优缺点一目了然-新导智能
  3. 国耀明医互联网医院: 白露吃什么好 白露食疗方
  4. C. The Intriguing Obsession(神仙组合数)
  5. 用友ERP-NC用户常见的问题
  6. 用友OA/NC/NCCloud漏洞集合
  7. 今日早报 每天一分钟知晓天下事 3-13
  8. Cadence元器件封装库
  9. 华硕A8SE系列安装windows XP +驱动安装
  10. What Makes a Great Maintainer of Open Source Projects?