Re: [SQL]

From: "Michael A(dot) Mayo" <mmayo(at)mcauleybrooklyn(dot)org>
To: "gomathi raju" <gomathi_raju(at)usa(dot)net>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: [SQL]
Date: 2000-05-25 04:54:38
Message-ID: 004a01bfc666$04f51e40$1ce8b798@362197428
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice pgsql-sql

----- Original Message -----
From: "gomathi raju" <gomathi_raju(at)usa(dot)net>
> I want to get the system timestamp from postgresql database.
> But I dont have a dual table from where ,I can select it.
> Give me a solution, from which table(system) I can get it.

No need to get it from a system table; it is available as a sort of "global
constant," current_timestamp.

Use it like this:

SELECT CURRENT_TIMESTAMP;

See the book at: http://www.postgresql.org/docs/awbook.html for more
information.

-Mike

In response to

  • at 2000-05-24 15:37:27 from gomathi raju

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2000-05-25 06:55:38 Re: Solaris 2.6 problems
Previous Message Hannu Krosing 2000-05-25 04:11:39 Re: AW: Postgresql OO Patch

Browse pgsql-novice by date

  From Date Subject
Next Message Gerhard Dieringer 2000-05-25 06:48:08 Antw: [SQL]
Previous Message Chris Bitmead 2000-05-25 00:02:37 Re: [HACKERS]

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2000-05-25 06:14:38 Re: Use of index in 7.0 vs 6.5
Previous Message Ryan Bradetich 2000-05-25 03:57:25 Re: Use of index in 7.0 vs 6.5