Re: Problem with timestamp - Pls help

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
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:39:59
Message-ID: 20030919083808.K212@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-09-19 15:42:30 Re: Problem with timestamp - Pls help
Previous Message Tom Lane 2003-09-19 15:38:17 Re: Backup of multiple tables