pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Greg Markham <gmarkham@markhamdirect.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Timestamp Question
Date: Sat, 10 Jul 2004 12:19:43 -0400
Message-ID: <1089476382.1515.301.camel@localhost.localdomain> (raw)
In-Reply-To: <40F012E4.3000001@markhamdirect.com>
References: <40F012E4.3000001@markhamdirect.com>

Greg,

I don't think you can get microseconds from your system. you can use
now() as the value to insert and it will get it from the server .

Dave
On Sat, 2004-07-10 at 12:01, Greg Markham wrote:
> I have searched the archives and not found and answer to this question:
> 
> I am trying to use a Java Timestamp object to create a Postgresql 
> Timestamp(6) field.  I can insert a Timestamp but it only goes to the 
> millisecond(2004-07-10 12:59:59.123) I need it to the microsecond 
> (2004-07-10 12:59:59.123456).  Is there a way to do this?
> 
> - Greg Markham
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
> 
> 
> 
> !DSPAM:40f013d973729751036622!
> 
> 
-- 
Dave Cramer
519 939 0336
ICQ # 14675561




view thread (14+ messages)  latest in thread

Message-ID: <1089476382.1515.301.camel@localhost.localdomain>
Permalink:  ../1089476382.1515.301.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1089476382.1515.301.camel@localhost.localdomain

 · 

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-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, gmarkham@markhamdirect.com
  Subject: Re: Timestamp Question
  In-Reply-To: <1089476382.1515.301.camel@localhost.localdomain>
  References: <40F012E4.3000001@markhamdirect.com> <1089476382.1515.301.camel@localhost.localdomain>

* 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