sql stuff和patindex函数的使用
Select stuff('abcdef',2,3,'yayahappy')
select patindex('%jinweida%','123jinweida54')
stuff的功能:删除指定长度的字符串并在指定的起始点插入另一组字符 STUFF ( character_expression , start , length , character_expression ) character_expression :操作的字符, start:删除和插入的起始点, length:删除的长度, cpatindexharacter_expression :要插入的字符功能:返回模式在字符串中第一次出现的位置
patindex( '%pattern%' , expression ) pattern:要查找的模式 expression:被找的字符串
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/flash_angle/archive/2008/04/28/2337748.aspx
sql stuff和patindex函数
最新推荐文章于 2019-06-26 14:18:52 发布