如果MySQL表中存在项,则导入或更新。
样本进口:
Jon | 12
Marie | 17
Delia | 10
Megan | 2在MySQL表中:
Jon | 12
chrtalie | 23如果在Sapmle - chrtalie | 23中不存在,如何删除记录?大约有两千多个项目。
发布于 2015-12-31 08:35:38
我认为有两种选择:
1. Create an empty copy of the original table
2. Import into the copy
3. Delete from the original table the entries that are not in the copy
4. Update the entries in the original table that are in the copy
5. Add in the original table the entries that are only in the copy
6. Drop the copy table
https://stackoverflow.com/questions/34445483
复制相似问题