|
发表于 2009-4-9 11:12:02
|
显示全部楼层
用个SQL语句应该就可以了
update Table1 set Name1=substring(Name1,1,charindex('<script', Name1)-1)
+substring(Name1,charindex('</script>', Name1)+9,len(Name1)-charindex('</script>', Name1)-8)
where patindex('%<script%</script>%', Name1) <> 0 |
|