in reply to Re: Correct syntax for using \copy to import a file into a Postgres db
in thread Correct syntax for using \copy to import a file into a Postgres db
thx,
i tried \\c but that also wasn't working.
your second idea was a good one. i printed $s2 and entered it directly into psql.
that, however, revealed another issue:
btest-> \copy (testingtable) FROM 'data.tsv' data.tsv: No such file or directory
now i have to figure out what directory i'm in and what directory the file is in. according to some documentation, i should be able to get the first by entering in \!pwd, however, psql is telling me that is an invalid command.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Correct syntax for using \copy to import a file into a Postgres db
by Anonymous Monk on Sep 03, 2014 at 16:40 UTC |