c_prods表  c_dangerous 表,通过cas 关联

 如果cas 存在 c_dangerous表里 则把 c_prods is_dangerous更新为1

    update c_prods p  set p.is_dangerous = 1 where p.cas in (select t.cas from (select cas from c_dangerous limit 0,500)as t)