ERROR: could not stat file “XX.csv”: Unknown error

a shortcut to https://stackoverflow.com/questions/53523051/error-could-not-stat-file-xx-csv-unknown-error/53533574

COPY XXX FROM 'D:/XXX.csv'  WITH (FORMAT CSV, HEADER TRUE, NULL 'NULL')
[Code: 0, SQL State: XX000]  ERROR: could not stat file "'D:/XXX.csv'  Unknown error
copy t(c,d) from program 'cmd /c "type x:\path\to\file.txt"' with (format text);
blog comments powered by Disqus