ylbtech-SQL Server-Function:f_GetPy
A, 返回顶部
1、f_GetPy
Create function   [dbo].[f_GetPy](@str   nvarchar(4000))
returns   nvarchar(4000)
as
begin
declare   @strlen   int,@re   nvarchar(4000)
declare   @t   table(chr   nchar(1)   collate   Chinese_PRC_CI_AS,letter   nchar(1))
insert   into   @t(chr,letter) select   '吖 ', 'A '   union   all   select   '八 ', 'B '   union   all select   '嚓 ', 'C '   union   all   select   '咑 ', 'D '   union   all select   '妸 ', 'E '   union   all   select   '发 ', 'F '   union   all select   '旮 ', 'G '   union   all   select   '铪 ', 'H '   union   all select   '丌 ', 'J '   union   all   select   '咔 ', 'K '   union   all select   '垃 ', 'L '   union   all   select   '嘸 ', 'M '   union   all select   '拏 ', 'N '   union   all   select   '噢 ', 'O '   union   all select   '妑 ', 'P '   union   all   select   '七 ', 'Q '   union   all select   '呥 ', 'R '   union   all   select   '仨 ', 'S '   union   all select   '他 ', 'T '   union   all   select   '屲 ', 'W '   union   all select   '夕 ', 'X '   union   all   select   '丫 ', 'Y '   union   all select   '帀 ', 'Z ' select   @strlen=len(@str),@re= ' ' while   @strlen> 0 begin select   top   1   @re=letter+@re,@strlen=@strlen-1 from   @t   a   where   chr <=substring(@str,@strlen,1) order   by   chr   desc if   @@rowcount=0 select   @re=substring(@str,@strlen,1)+@re,@strlen=@strlen-1 end return(@re)
end

2、
B,返回顶部
C,返回顶部
D,返回顶部
作者:ylbtech
出处:http://storebook.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

DBS-Function:f_GetPy相关推荐

  1. warning: control reaches end of non-void function:错误解决

    warning: control reaches end of non-void function:错误解决 用gcc编译一个程序的时候出现这样的警告: warning: control reache ...

  2. 【Tensorflow教程笔记】常用模块 tf.function :图执行模式

    基础 TensorFlow 基础 TensorFlow 模型建立与训练 基础示例:多层感知机(MLP) 卷积神经网络(CNN) 循环神经网络(RNN) 深度强化学习(DRL) Keras Pipeli ...

  3. 【GPU编程】体绘制传输函数-分类(Volume Rendering Transfer function:Pre- VS Post-Classification)

    在科学可视化中,我们所获得的体数据集经常是代表一些光学上的不同物理属性的单值.通常没有可行的方法可以从这样的数据中获得发射和吸收属性.因此用户必须采用某种映射方法给数据值分配光学属性值来决定数据中的不 ...

  4. SSDsim simulation function:simulate()

    struct ssd_info simulate(struct ssd_info ssd): simulate()是核心处理函数,主要实现的功能包括 1,从trace文件中获取一条请求,挂到ssd-& ...

  5. pin function和pin group:iomuxc节点解析始末

    总体框图: 设备树iomuxc节点层次 iomuxc function grouc fsl,pins = <xxxxxx>; - group - function - 层次关系说明 iom ...

  6. 从零搭建MySQL数据库集群(三):搭建混合集群综合应用

    集群的讲解分为三篇 (一):主从复制集群.PXC集群 https://blog.csdn.net/weixin_43934607/article/details/102762570 (二):MyCat ...

  7. 读书笔记:编写高质量代码--web前端开发修炼之道(二:5章)

    读书笔记:编写高质量代码--web前端开发修炼之道 这本书看得断断续续,不连贯,笔记也是有些马虎了,想了解这本书内容的童鞋可以借鉴我的这篇笔记,希望对大家有帮助. 笔记有点长,所以分为一,二两个部分: ...

  8. 软件调试的艺术笔记:GDB

    很久之前,在https://blog.csdn.net/fengbingchun/article/details/41413381中简单整理过gdb中常用的一些命令,不齐全,这里按照<软件调试的 ...

  9. 吴恩达老师深度学习视频课笔记:神经风格迁移(neural style transfer)

            什么是神经风格迁移(neural style transfer):如下图,Content为原始拍摄的图像,Style为一种风格图像.如果用Style来重新创造Content照片,神经风 ...

最新文章

  1. Linux内核 题目,《Linux内核完全注释》部分习题答案
  2. mybatis3单表增删改查(二)——注解方式
  3. VMware10 —— 安装CentOS7(图解)
  4. 基于用户投票的排名算法(四):牛顿冷却定律
  5. 组信箱共享及挂载介绍
  6. 全新尝试|ComponentOne WinForm和.NET Core 3.0
  7. ASP.NET MVC4实现TinyMCE 4.0.20自定义上传功能
  8. 修改Linux SSH连接端口和禁用IP,安装DDoS deflate
  9. NG-ZORRO 7.0.1 发布,Ant Design 的 Angular 实现
  10. 回归模型的score得分为负_逻辑回归评分卡实现和评估
  11. 使用JVM钩子函数关闭资源
  12. OpenCV-绘制同心圆
  13. k8s集群安装traefik 2.x (保证成功版)
  14. 小游戏1024纯C语言
  15. 74hc595级联c语言程序,10个74HC595级联 单片机程序请教
  16. 是西电梦了我,还是我梦了西电
  17. 简述计算机键盘上shift键的作用,电脑Shift键作用大全
  18. 百位LOL英雄联盟角色合集
  19. 【译】网页像素追踪原理
  20. session 对象的绑定、解绑和钝化、活化

热门文章

  1. 锁分段技术、ConcurrentHashMap、扩容
  2. Drill官网文档翻译六:存储插件的注册
  3. Maven3生命周期和插件
  4. .net mvc 获取url中controller和action
  5. 暖通中级工程师计算机考试题库,暖通工程师试题(含答案)
  6. matlab veristand,amesim Veristand matlab
  7. Android中更详细的log获取方法
  8. Android ListView反复调用getView和getCount
  9. Struts2学习笔记(十六) 文件上传(File Upload)
  10. Eclipse 在开发中使用到的快捷键很实用 .