您当前的位置: 首页 >  sql

[MSSQL]计算字符串分割数

发布时间:2011-12-06 13:23:32 ,浏览量:0

 
-- =============================================   
-- Author:-- Create date:-- Description: <计算字符串分割数>   
-- ============================================= 
ALTER FUNCTION [dbo].[func_get_split_num](@str varchar(8000))
returns int
as
begin
declare @int_return int
declare @start int
declare @next int
declare @location int
select @str=','+@str+','
select @str=replace(@str,',,',',')
select @start=1
select @next=1
select @location=charindex('
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    106161博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0860s