test_b 表数据
test_a 表数据
同步表a 数据到b中,已有不做更新
insert into test_b
select * from test_a
where not EXISTS (select * from test_b where test_a.id=test_b.id)
test_b 表数据
test_a 表数据
同步表a 数据到b中,已有不做更新
insert into test_b
select * from test_a
where not EXISTS (select * from test_b where test_a.id=test_b.id)