From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Korapat Charukumnerdkanok <korapat.c@cdg.co.th>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [GENERAL] :) Import file2table Question
Date: Mon, 6 Jul 1998 16:49:26 +0300
Message-ID: <l03110701b1c685f4988a@[147.233.159.109]> (raw)
In-Reply-To: <35A09973.15A3@cdg.co.th>
(Redirected to the SQL list)
At 12:31 +0300 on 6/7/98, Korapat Charukumnerdkanok wrote:
> 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"
Must be something wrong with your installation - or your table definition.
In my case:
testing=> create table test ( col1 float8 );
CREATE
testing=> insert into test values ( 0.3 );
INSERT 758126 1
testing=> insert into test values ( 0.000003 );
INSERT 758127 1
testing=> insert into test values ( 0 );
INSERT 758128 1
testing=> insert into test values ( 0.0 );
INSERT 758129 1
testing=> insert into test values ( 0.000000 );
INSERT 758130 1
testing=> select * from test;
col1
-----
0.3
3e-06
0
0
0
(5 rows)
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
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: herouth@oumail.openu.ac.il, korapat.c@cdg.co.th
Subject: Re: [GENERAL] :) Import file2table Question
In-Reply-To: <l03110701b1c685f4988a@[147.233.159.109]>
References: <35A09973.15A3@cdg.co.th> <l03110701b1c685f4988a@[147.233.159.109]>
* 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