Re: "COPY FROM" Postgresql

From: Randal L. Schwartz (merlyn_at_stonehenge.com)
Date: 02/27/05


To: beginners@perl.org
Date: 27 Feb 2005 06:40:35 -0800


>>>>> "Eduardo" == Eduardo <Vázquez Rodríguez> writes:

Eduardo> $sth10 = $dbh->prepare ("COPY dummy FROM /home/postgres/dummy/dummyfile");

The filename needs to be quoted. You can use placeholders if you wish.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


Relevant Pages