On Tue, Mar 13, 2007 at 11:52:17PM +, T E Schmitz wrote:
> Also, it's nopt happy about the date format : 2007/02/09
You may need to fiddle with your date style. It works for me on 8.1:
SELECT '2007/02/09'::date;
date
2007-02-09
(1 row)
A
--
Andrew Sullivan | [EMAIL
T E Schmitz wrote:
Rodrigo De León wrote:
On 3/13/07, T E Schmitz <[EMAIL PROTECTED]> wrote:
This is pretty ingenious!
Just a few minor problems:
- how does COPY know which column is which?
- how do I specify DELIMITER as TAB?
See:
http://www.postgresql.org/docs/8.2/static/sql-copy.html
Rodrigo De León wrote:
On 3/13/07, T E Schmitz <[EMAIL PROTECTED]> wrote:
This is pretty ingenious!
Just a few minor problems:
- how does COPY know which column is which?
- how do I specify DELIMITER as TAB?
See:
http://www.postgresql.org/docs/8.2/static/sql-copy.html
Thank you for the lin
On 3/13/07, T E Schmitz <[EMAIL PROTECTED]> wrote:
This is pretty ingenious!
Just a few minor problems:
- how does COPY know which column is which?
- how do I specify DELIMITER as TAB?
See:
http://www.postgresql.org/docs/8.2/static/sql-copy.html
Also, it's nopt happy about the date format : 2
D'Arcy J.M. Cain wrote:
On Tue, 13 Mar 2007 20:38:33 +
T E Schmitz <[EMAIL PROTECTED]> wrote:
psql -h lolek -U tes -d stockmarket -c "copy history from STDIN CSV" <
/tmp/FTSE.csv
Also, it's nopt happy about the date format : 2007/02/09
--
Regards,
Tarlika Elisabeth Schmitz
-
Jure Kodzoman wrote:
On Tue, 2007-03-13 at 20:38 +, T E Schmitz wrote:
I am trying to batch-load a tab-separated CSV file:
psql -h lolek -U tes -d stockmarket -c "copy history from
'/tmp/FTSE.csv' CSV";
ERROR: could not open file "/tmp/FTSE.csv" for reading: No such file or
directory
D'Arcy J.M. Cain wrote:
On Tue, 13 Mar 2007 20:38:33 +
T E Schmitz <[EMAIL PROTECTED]> wrote:
I am trying to batch-load a tab-separated CSV file:
psql -h lolek -U tes -d stockmarket -c "copy history from
'/tmp/FTSE.csv' CSV";
ERROR: could not open file "/tmp/FTSE.csv" for reading: No
On Tue, 2007-03-13 at 20:38 +, T E Schmitz wrote:
> I am trying to batch-load a tab-separated CSV file:
>
> psql -h lolek -U tes -d stockmarket -c "copy history from
> '/tmp/FTSE.csv' CSV";
>
> ERROR: could not open file "/tmp/FTSE.csv" for reading: No such file or
> directory
>
> The fi
On Tue, 13 Mar 2007 20:38:33 +
T E Schmitz <[EMAIL PROTECTED]> wrote:
> I am trying to batch-load a tab-separated CSV file:
>
> psql -h lolek -U tes -d stockmarket -c "copy history from
> '/tmp/FTSE.csv' CSV";
>
> ERROR: could not open file "/tmp/FTSE.csv" for reading: No such file or
> d
T E Schmitz wrote:
> I am trying to batch-load a tab-separated CSV file:
>
> psql -h lolek -U tes -d stockmarket -c "copy history from
> '/tmp/FTSE.csv' CSV";
>
> ERROR: could not open file "/tmp/FTSE.csv" for reading: No such file or
> directory
>
> The file exists. Do I need to escape the
I am trying to batch-load a tab-separated CSV file:
psql -h lolek -U tes -d stockmarket -c "copy history from
'/tmp/FTSE.csv' CSV";
ERROR: could not open file "/tmp/FTSE.csv" for reading: No such file or
directory
The file exists. Do I need to escape the quotes?
set-up: Postgres 8.1, De
11 matches
Mail list logo