sql stuff 函数用法(转帖)技术 2009-03-09 10:58:13 阅读178 评论0 字号:大中小 .
Select stuff("abcdef",2,3,"ghijk")
go
结果:aghijk
stuff的功能:删除指定长度的字符串并在指定的起始点插入另一组字符
STUFF( character_expression ,start ,length ,character_expression )
character_expression :操作的字符,
start:删除和插入的起始点,
length:删除的长度,
character_expression :要插入的字符