From: | Richard Harley <richard(at)scholarpack(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Selecting timestamp from Database |
Date: | 2013-04-08 13:45:31 |
Message-ID: | A37102AD-816C-4028-B3DC-EFDC6CC362B3@scholarpack.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I am running the query straight through PSQL so there are no other programs or adapters.
The field definition is just 'timestamp'.
I did try that as well - no luck :)
Rich
On 8 Apr 2013, at 14:36, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> wrote:
> On 04/08/2013 06:27 AM, Richard Harley wrote:
>> Sure
>>
>> Timestamp
>> 2013/04/08 12:42:40 GMT+1
>> 2013/04/08 12:42:33 GMT+1
>> 2013/04/07 20:25:11 GMT+1
>> 2013/04/07 20:19:52 GMT+1
>> 2013/04/07 20:19:52 GMT+1
>
> What program are you using to get the above result?
>
> What is the field definition for the timestamp column?
>
> From your previous post try:
>
> select timestamp from attendance where timestamp = '2012/12/14 12:02:45+0'
>
>>
>>
>> Some are GMT, some are GMT+1 depending on when they were entered.
>>
>>
>>
>> On 8 Apr 2013, at 14:25, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com
>> <mailto:adrian(dot)klaver(at)gmail(dot)com>> wrote:
>>
>>> On 04/08/2013 06:22 AM, Richard Harley wrote:
>>>> This doesn't seem to work - take a normal GMT date for example:
>>>> 2012/12/14 12:02:45 GMT
>>>>
>>>> select timestamp from attendance where timestamp = '2012/12/14 12:02:45'
>>>>
>>>> ..returns nothing
>>>
>>> Can you show the results of an unconstrained SELECT?:
>>>
>>> select timestamp from attendance limit 5;
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Adrian Klaver
>>> adrian(dot)klaver(at)gmail(dot)com <mailto:adrian(dot)klaver(at)gmail(dot)com>
>>
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)gmail(dot)com
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2013-04-08 13:46:37 | Re: PostgreSQL Downgrades |
Previous Message | Pete Wall | 2013-04-08 13:41:10 | Re: PostgreSQL Downgrades |