create   proc   pipei
as
begin

declare   @string   varchar(1000)
declare   @keyword   varchar(30)

declare   cursor1   cursor   for   select   keyword   from   bb

open   cursor1
fetch   cursor1   into   @keyword
while(@@fetch_status   =   0)
begin

set   @string   =   'update   aa   set   mark   =   1   where   domain   like   ''%'+@keyword+''''

exec(@string)
fetch   cursor1   into   @keyword
end

close   cursor1
deallocate   cursor1
end

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案