文件名称:splitA
-
所属分类:
- 标签属性:
- 上传时间:2018-02-02
-
文件大小:1kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Alter FUNCTION [dbo].[split](@expression VarChar(max),@delimiter VarChar(30) = ' ')
RETURNS @TmpTable TABLE (RefNo VarChar(max))
AS
BEGIN
if rtrim(isnull(@expression,'')) > ''
begin
declare @cxml xml
set @cxml = '<x_k><![CDATA['+replace(@expression,@delimiter,']]></x_k><x_k><![CDATA[')+']]></x_k>'
insert into @TmpTable select ls.row.value('.[1]','varchar(max)') as refno--, identity(int,1,1) as idno
from @cxml.nodes('/x_k') as ls(row)
end
RETURN
END
GO(A SQL imitates the split function in VB to achieve a high efficiency by turning a text string into a data table.)
RETURNS @TmpTable TABLE (RefNo VarChar(max))
AS
BEGIN
if rtrim(isnull(@expression,'')) > ''
begin
declare @cxml xml
set @cxml = '<x_k><![CDATA['+replace(@expression,@delimiter,']]></x_k><x_k><![CDATA[')+']]></x_k>'
insert into @TmpTable select ls.row.value('.[1]','varchar(max)') as refno--, identity(int,1,1) as idno
from @cxml.nodes('/x_k') as ls(row)
end
RETURN
END
GO(A SQL imitates the split function in VB to achieve a high efficiency by turning a text string into a data table.)
相关搜索: SQL 仿 split 函數
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
split.sql | 44313 | 2018-02-02 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.