-1
원격 데스크톱에서 COPY
을 사용하여 json 파일을 업로드 할 수 있습니까?원격 데스크톱에서 복사
명령 :
crash --host 192.100.1.15:4200 -c "COPY doc.test FROM '/test.json'"
파일 : {"id": 1, "name": "foo"}
오류 :
SQLActionException[SQLParseException: Column reference "test.json" has too many parts. A column must not have a schema or a table here.]
두 번째 옵션 :
crash --host 192.100.1.15:4200 -c "COPY doc.test FROM 'file:///test.json'"
COPY OK, 0 rows affected (0.001 sec)