在查询分析器中,如何用SQL语句替换字段中的某个字符?
update tableName set fieldName = replace(fieldName,'abcd','1234') where fieldName like '%abcd%'
例如:过滤掉字段title中的英文逗号(,),
update dbo.News set title= replace(title,',','') where title like '%,%'
在查询分析器中,如何用SQL语句替换字段中的某个字符?
update tableName set fieldName = replace(fieldName,'abcd','1234') where fieldName like '%abcd%'
例如:过滤掉字段title中的英文逗号(,),
update dbo.News set title= replace(title,',','') where title like '%,%'