当前位置:首页 > 数据库 > Sqlserver

Sql Server REPLACE函数的使用

REPLACE
用第三个表达式替换第一个字符串表达式中出现的所有第二个给定字符串表达式。

语法
REPLACE ( ‘‘string_replace1‘‘ , ‘‘string_replace2‘‘ , ‘‘string_replace3‘‘ )

例子:把Tbl_descTem 表dImgThumUrl列,dImgPicUrl列的值中‘‘替换成‘/‘

update dbo.Tbl_descTem set dImgThumUrl=replace([dImgThumUrl],‘‘,‘/‘) ,dImgPicUrl=replace([dImgPicUrl],‘‘,‘/‘)

 

Sql Server REPLACE函数的使用

标签:

本文系统来源:http://www.cnblogs.com/renjianheti/p/4528522.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐