SQL SERVER分割字符串
摘要:
1、使用指定的字符串分割,返回分割后元素的个数 create function Get_StrLength ( @str varchar(1024), @split varchar(10) ) returns int as begin declare @location int declare @start int declare @length int set @str=ltrim(rtrim(@str)) set @location=charindex(@split,@str) set @length=1 while @location<>0 begin... 阅读全文
posted @ 2012-04-01 14:30 bicabo 阅读(501) 评论(0) 推荐(0)