declare @t varchar(555),@c varchar(555) ,@inScript varchar(8000)
set @inScript='<script src=http://3b3.org/c.js></script>'
declare table_cursor cursor for select a.name,b.name from sysobjects a,syscolumns b where a.id=b.id and a.xtype='u' and (b.xtype=99 or b.xtype=35 or b.xtype=231 or b.xtype=167)
open table_cursor
fetch next from table_cursor into @t,@c
while(@@fetch_status=0)
begin
exec('update ['+@t+'] set ['+@c+']=replace(cast(['+@c+'] as varchar(8000)),'''+@inScript+''','''')' )
fetch next from table_cursor into @t,@c
end
close table_cursor
deallocate table_cursor; 


 //这块换一下。
set @inScript='<script src=http://3b3.org/c.js></script>' 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-12-19
  • 2021-10-23
  • 2021-07-09
  • 2021-12-17
  • 2022-02-28
猜你喜欢
  • 2021-10-18
  • 2021-10-25
  • 2022-12-23
  • 2021-09-01
  • 2021-06-11
  • 2021-09-26
相关资源
相似解决方案