select col from [dbo].[GetInPara]('101,102,103',',')

USE [xxx]
GO
/****** Object: UserDefinedFunction [dbo].[GetInPara] Script Date: 2019/9/26 11:06:28 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER function [dbo].[GetInPara](@c varchar(),@split varchar())
returns @t table(col varchar())
as
begin
while(charindex(@split,@c)<>)
begin
insert @t(col) values (substring(@c,,charindex(@split,@c)-))
set @c = stuff(@c,,charindex(@split,@c),'')
end
insert @t(col) values (@c)
return
end

最新文章

  1. php报表使用
  2. 解决ArcGIS安装之后出现的Windows installer configures问题
  3. 第二章 编写与设置Servlet
  4. AJAX-----14HTML5中新增的API---files
  5. jQuery 1.9 .live() is not a function
  6. 网页自适应@media
  7. Android开发-API指南-Content Provider基础
  8. 动态生成图片 保存到OutputStream
  9. 2014广州Java岗位面试汇总
  10. Installshield: custom action return value
  11. android使用Genymotion作为模拟器
  12. select函数的简单使用
  13. Linux-中断和中断处理
  14. asp.net时间范围查询
  15. k8s与云服务器之间服务互访之节点网络打通
  16. c#无边框窗体移动
  17. 如何使tinymce编辑器的高度随内容自变化(转载)
  18. Arduino IDE for ESP8266 项目云盒子(4)组网
  19. Rocket MQ 问题排查命令
  20. mac下的tcp抓包

热门文章

  1. P2077 【红绿灯】
  2. 【Angular5】 返回前一页面 go back to previous page
  3. 联盟周赛2019810 csgo (动态规划、不下降子序列)
  4. Hbase 0.92.1 Replication
  5. [题解][洛谷]_U75702/P5462_X龙珠_论何为字典序
  6. GitHub编辑README.md
  7. 优雅的用两种方式爬网络 txt 文件【雾
  8. filebeat开启自带模块收集日志如何辨别日志来源等
  9. [WPF]BringIntoView
  10. Ubuntu安装openssh安装ssh、 免密登录、 创建新用户并免密登录