Or what you can do is to print $s2 and see if the syntax is valid in Postgresql.my $s2 = "\\copy (" ....
In reply to Re: Correct syntax for using \copy to import a file into a Postgres db
by bichonfrise74
in thread Correct syntax for using \copy to import a file into a Postgres db
by BruceDB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |