SQL中ntext、text数据替换

ColName是ntext格式,里面放一些html代码,我想把中间的段落标记<p>和</p>清除
 
update TestTable set ColName=replace(cast(ColName as varchar(8000)),'<p>','')
update TestTable set ColName=replace(cast(ColName as varchar(8000)),'</p>','')
相关文章
相关标签/搜索