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>','')