pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tubagus Nizomi <nizomi@dnet.net.id>
To: pgsql-sql@postgresql.org
Subject: Decimal ??
Date: Wed, 24 May 2000 09:55:51 +0700
Message-ID: <00052410061402.00709@nizomi.dnet.net.id> (raw)

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 



view thread (6+ messages)  latest in thread

Message-ID: <00052410061402.00709@nizomi.dnet.net.id>
Permalink:  ../00052410061402.00709@nizomi.dnet.net.id/
Also on:    postgresql.org/message-id/00052410061402.00709@nizomi.dnet.net.id

 · 

reply

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: nizomi@dnet.net.id
  Subject: Re: Decimal ??
  In-Reply-To: <00052410061402.00709@nizomi.dnet.net.id>
  References: <00052410061402.00709@nizomi.dnet.net.id>

* 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