在表中增加primary key或者unique index
写数据时用replace into代替insert into
这个语句会自动判断应该是update还是insert