Re: Problem with timestamp - Pls help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kumar" <sgnerd(at)yahoo(dot)com(dot)sg>
Cc: "psql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Problem with timestamp - Pls help
Date: 2003-09-19 15:42:30
Message-ID: 20527.1063986150@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Kumar" <sgnerd(at)yahoo(dot)com(dot)sg> writes:
> I wanted to update one column of my table with now() or timestamp. And I wa=
> nt that timestamp of format ------------------------
> 2003-09-19 18:39:08.13

It sounds like you simply want to limit the fractional precision of the
value. Why don't you just declare the column as timestamp(2) ? All
this fooling around with substrings is inefficient and doesn't have much
to do with your real intent anyhow.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-09-19 15:59:19 Re: Problem with timestamp - Pls help
Previous Message Stephan Szabo 2003-09-19 15:39:59 Re: Problem with timestamp - Pls help