Re: Problem with timestamp - Pls help - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Problem with timestamp - Pls help
Date
Msg-id 20030919083808.K212@megazone.bigpanda.com
Whole thread Raw
In response to Problem with timestamp - Pls help  ("Kumar" <sgnerd@yahoo.com.sg>)
Responses Re: Problem with timestamp - Pls help  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: Problem with timestamp - Pls help  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On Fri, 19 Sep 2003, Kumar wrote:

> Dear Friends,
>
> I am using Postgres 7.3.4 on Linux server 7.3.
>
> I wanted to update one column of my table with now() or timestamp. And I want that timestamp of format
------------------------

>  2003-09-19 18:39:08.13

I think select CAST(CURRENT_TIMESTAMP(0) AS timestamp without time zone)
may get you what you want without having to rely on the text format.


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Backup of multiple tables
Next
From: Tom Lane
Date:
Subject: Re: Problem with timestamp - Pls help