Argument data type text is invalid for argument 1 of replace function

update Table

set  content= replace(content,'222','') 

 

ERROR

Argument data type text is invalid for argument 1 of replace function

 

更改为

update Table 
set content=replace(cast(content as varchar(8000)),'22','') 

posted @ 2019-08-02 16:02  S_Wilson  阅读(1450)  评论(0编辑  收藏  举报