无法将 CSV 从云端硬盘加载到 Neo4j
Can't load CSV from Drive to Neo4j
我正在使用以下密码:
LOAD CSV FROM "https://drive.google.com/file/d/12DiEwM8XatMZBXA6TdekxWl8qrsgVj3l/view?usp=sharing" AS requests RETURN requests
并出现以下错误:
At https://drive.google.com/file/d/12DiEwM8XatMZBXA6TdekxWl8qrsgVj3l/view?usp=sharing @ position 1691 - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: 'docs-fwds":'
请告知如何修复它,我希望能够将一个简单的 CSV 文件从 Drive 加载到 Neo4j。
您需要使用下载 link 而不是共享 link。这对我有用:
LOAD CSV WITH HEADERS FROM "https://drive.google.com/u/0/uc?id=12DiEwM8XatMZBXA6TdekxWl8qrsgVj3l&export=download" as row
RETURN row LIMIT 5
我通过单击下载图标下载了 link,这会重定向您。您必须快速复制重定向 link,它应该可以工作。也许有一种方法可以手动重建查询,这样您就不必非常快地复制下载link,但我不知道。
我正在使用以下密码:
LOAD CSV FROM "https://drive.google.com/file/d/12DiEwM8XatMZBXA6TdekxWl8qrsgVj3l/view?usp=sharing" AS requests RETURN requests
并出现以下错误:
At https://drive.google.com/file/d/12DiEwM8XatMZBXA6TdekxWl8qrsgVj3l/view?usp=sharing @ position 1691 - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: 'docs-fwds":'
请告知如何修复它,我希望能够将一个简单的 CSV 文件从 Drive 加载到 Neo4j。
您需要使用下载 link 而不是共享 link。这对我有用:
LOAD CSV WITH HEADERS FROM "https://drive.google.com/u/0/uc?id=12DiEwM8XatMZBXA6TdekxWl8qrsgVj3l&export=download" as row
RETURN row LIMIT 5
我通过单击下载图标下载了 link,这会重定向您。您必须快速复制重定向 link,它应该可以工作。也许有一种方法可以手动重建查询,这样您就不必非常快地复制下载link,但我不知道。