好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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函数的使用

标签:

查看更多关于Sql Server REPLACE函数的使用的详细内容...

  阅读:24次