Argument data type text is invalid for argument 1 of replace function
Posted wilsons
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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‘,‘‘)
以上是关于Argument data type text is invalid for argument 1 of replace function的主要内容,如果未能解决你的问题,请参考以下文章