Connecting Tech Pros Worldwide Forums | Help | Site Map

COPY Query fails in postgre release 8.2

Newbie
 
Join Date: Sep 2007
Posts: 1
#1: Sep 6 '07
Hi folks,

I am trying to use copy command as follows:

COPY (SELECT * FROM table) TO '/usr/tmp/file.txt';

I get an error:

ERROR: syntax error at or near "(" at character 6

Have tried almost all forums and didn't get any resolution...Any help would be highly appreciated.

Many thanks in advance,

Dheeraj

Reply