知乎者也是什么意思:MS SQL Server 2000中删除或修改记录中指定字符

来源:百度文库 编辑:高考问答 时间:2024/05/05 04:06:13
UPDATE 表1 SET 字段1 = Replace(字段1,'','') (字段1为 ntext 型),
出现下面错误: 服务器: 消息 8116,级别 16,状态 1,行 1 函数 replace 的参数 1 的数据类型 ntext 无效。

update tablename set 字段1 =replace(cast(字段1 as varchar(8000)) ,'aa','bb')

update talbe set fields1=replace(fileds,'words','words2')