SQL Server-拆分字符串返回表(存储过程)
摘要:
SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER function [dbo].[f_split](@SourceSql varchar(max),@StrSeprate varchar(10))returns @temp table(a varchar(100))--实现split功能 的函数asbegindeclare @i intset @SourceSql=rtrim(ltrim(@SourceSql))set @i=charindex(@StrSeprate,@SourceSql)while @i>=1begininsert 阅读全文
posted @ 2013-01-11 17:12 沸石 阅读(246) 评论(0) 推荐(0) 编辑