Re: Selecting timestamp from Database

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Richard Harley <richard(at)scholarpack(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Selecting timestamp from Database
Date: 2013-04-08 13:58:12
Message-ID: 5162CCF4.7000700@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/08/2013 06:49 AM, Richard Harley wrote:
> It's
>
> Column | Type |
> Modifiers
> --------------+-----------------------------+-------------------------------------------------------------------
> attendanceid | integer | not null default
> nextval('attendance_attendanceid_seq'::regclass)
> entered | date | not null default
> ('now'::text)::date
> timeperiod | character(2) |
> timestamp | timestamp without time zone | default now()
>

Well timestamp is not time zone aware, so I have no idea where your time
zone offsets are coming from.

What happens if you do:
"select timestamp from attendance where timestamp = ' '2012-12-14 12:02:45';

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2013-04-08 14:04:11 Re: PostgreSQL Downgrades
Previous Message Adrian Klaver 2013-04-08 13:51:57 Re: PostgreSQL Downgrades