table_a{
A 主键,
B 字段,
C 字段,
D 字段,
E 字段
}
table_b{
A 主键,
B 字段,
C 字段,
D 字段,
E 字段
}
需求:对比 table_a 跟 table_b 的主键对比,得到结果 1.a表主键存在,b表不存在;2.a表主键不存在,b表存在;3.a表和b表都存在一样的主键,那么就 a表的B字段跟b表的B字段对比, a表的C字段跟b表的C字段对比 。可以在数据库方面使用函数、 存储过程等。还有 两张表的数据可能超过千万条,求各位大神有没有好的建议。
这边只能悬赏100,,分数还可以追加的