首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

为何在ms-sql中ntext类型不支持update?该怎么处理

2012-01-24 
为何在ms-sql中ntext类型不支持update?为何在ms-sql中ntext类型不支持update表格set字段replace(字段, aa

为何在ms-sql中ntext类型不支持update?
为何在ms-sql中ntext类型不支持update   表格   set   字段=replace(字段, 'aa ', 'vv ')?
总是显示函数   replace   的参数   1   的数据类型   ntext   无效。
是什么原因呢?
或者ntext类型转什么类型可以保护原来数据呢?

[解决办法]
如果你的ntext是直接存储在行中,可以先强制转换,在用replace(),
如果是存的是地址,可以使用updatetext.

热点排行
Bad Request.