SQL 过滤文本
ColName是ntext格式,里面放一些html代码,我想把中间的段落标记<p>和</p>清除
update TestTable set ColName=replace(cast(ColName as varchar(8000)),'<pre>','')
update TestTable set ColName=replace(cast(ColName as varchar(8000)),'</pre>','')
ColName是ntext格式,里面放一些html代码,我想把中间的段落标记<p>和</p>清除
转载于:https://www.cnblogs.com/dzone/archive/2011/03/16/1985736.html