批量插入数据,
如果主键重复则更新a2的值
如果a3的值>0 ,则保持table_a.a2的值不变
insert into table_a (a1 ,a2)
select b1,b2 from table_b
on duplicate key update a2 = if(a3>0,x,table_a.a2)