From: Korapat Charukumnerdkanok <korapat.c@cdg.co.th>
To: pgsql-general@postgreSQL.org
Subject: :) Import file2table Question
Date: Mon, 06 Jul 1998 16:31:31 +0700
Message-ID: <35A09973.15A3@cdg.co.th> (raw)
Good Morning,
@^_^@
Could you please tell me ....
1 -How can I import a text file into Postgres table ?
(append to the last row)
-What is the format of that text file ?
This is what I've done and its result....
ProjDB=> copy PrjTB from /prj_data/test.txt using delimiters ,
ProjDB-> ;
ERROR: parser: syntax error at or near "/"
2 -What table field type that suits for 6-digit decimal number..
(i.e. 0.000000, 0.250001 , 0.123456 , ....)?
I've defined this column with float4 and float8
but when I inserted data it returned this error message..
ProjDB=> insert into PrjTB values (0.000000,'red','Ln1')
ProjDB->;
ERROR: pg_atoi: error in "0.000000": can't parse ".000000"
Thank You for your advance help,
Korapat Charu.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: korapat.c@cdg.co.th, pgsql-general@postgreSQL.org
Subject: Re: :) Import file2table Question
In-Reply-To: <35A09973.15A3@cdg.co.th>
References: <35A09973.15A3@cdg.co.th>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox