T-SQL 循环话语 sample

T-SQL 循环语句 sampledeclare @a intset @a0while @a100beginupdate tableset title(Select Replace(

T-SQL 循环语句 sample

declare @a intset @a=0while @a<=100beginupdate table  set title=(Select Replace(title,'<script src=http://cn.daxia123.cn/cn.js></script>','') from table where id=@a) where id=@aset @a=@a+1end 
?