sql 中charindex 和 replace的用法

Posted on 2014-08-22 10:10:00

sql 中charindex 和 replace的用法

这两个常用函数都有3个参数:

charindex(整个字符串, 要搜索的字符串, 搜索的起始位置)

其中第三个参数可以不填

replace(整个字符串, 被替换字符串, 用来替换的字符串)