会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
hailibu
随笔档案-2008年04月
在SQL语句中实现split函数
2008-04-29 11:34 by hailibu, 2119 阅读,
收藏
,
摘要: declare @str varchar(8000),@start int,@end int set @str = 'I,am,derry,' --如果输入串不是以分割字符结尾,则 set @str = @str+‘,’ set @start = 1 set @end = charindex(',',@str,@start) --第一次出现分割字符的下标位置 while(@end0) ...
阅读全文
0 Comment
About