Decimal ??

From: Tubagus Nizomi <nizomi(at)dnet(dot)net(dot)id>
To: pgsql-sql(at)postgresql(dot)org
Subject: Decimal ??
Date: 2000-05-24 02:55:51
Message-ID: 00052410061402.00709@nizomi.dnet.net.id
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have table :
create table test (name text, price numeric(6,2));
CREATE
insert into test values ('John',0.75);
INSERT

select * from test;
name | price
---------
John | 0.75

but when i insert into test values ('John',3/4);
INSERT

select * from test;
name | price
---------
John | 0.00 ---> ???

why this value 0.00 but i want to 0.75 ??? help me please.

i am using mandrake 7 and postgres 6.5.3

Thanks
Nizomi

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jason Earl 2000-05-24 04:43:10 Re: Decimal ??
Previous Message Stef telford 2000-05-24 01:36:43 Clarified Question