假设A是本地表,B是服务器的表,主键是KEY//从A中删除B表中没有的数据DELETE FROM A WHERE A.KEY NOT IN (SELECT B.KEY FROM B)//按照B的数据更新(或插入)AINSERT OR REPLACE INTO A(KEY, Column1) SELECT B.Key,B.Column1 FROM B WHERE B.KEY=A.KEY