我在某处将数据作为csv文件形式勒索,然后我试图将此csv文件导入Filemaker。但是我只想导入那些在该filemaker数据库中不可用的记录。
没有办法直接导入新记录。不过,这里有一个可能的解决方法。我假设目标是导入到您当前的表中,final destination table
- 创建新的
temporary import
表。 - 在
temporary import
表和final destination table
之间创建关系。通常,您希望根据csv文件中的唯一键以及final destination table
上的记录来执行此操作。 - 如果手动执行此操作,请创建一个布局,显示
temporary import
表,该表具有final destination table
:final destination table::unique key
中的相关索引。(如果要编写脚本来自动执行此过程,则无需执行此操作。 - 将 csv 文件导入到
temporary import
表中。 - 在
temporary import
表的布局上输入Find Mode
,在final destination table::unique key
字段中输入*
,设置要省略的记录,然后执行查找。 - 布局现在应仅包含尚未在
final destination table
中的记录 - 转到
final destination table
并从同一数据库的temporary import
表中导入。
这应该可以做到。此处提供了一些其他讨论:http://www.filemakertoday.com/com/showthread.php/29550-Importing-only-new-records