insert B
select * from A 
where not exists(select 1 
                   from B 
                      where id=A.id 
                            and name=A.name
                            and address=A.address
                            and idcard=A.idcard)