I'm novice in PostgreSQL 8.4, I'm trying to export csv files from temporary tables.
As I wrote
SET client_encoding TO 'SJIS';
\copy temp_table TO 'temp_table.csv' WITH CSV HEADER;
SET client_encoding TO 'UTF8';
However, this code returns error like
\copy: parse error at ";"
Please help me... Thank you in advance!