Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: datetime queries in postgres
- To: tlug@example.com
- Subject: Re: datetime queries in postgres
- From: vp@example.com (Viktor Pavlenko)
- Date: 24 May 2001 11:35:17 +0900
- Content-Type: text/plain; charset="ISO-2022-JP"
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <NOfJAD.A.1DC.rNHD7@example.com>
- Resent-Sender: tlug-request@example.com
Well this is what happen when you don't have to retype your query in psql, just hit 'up' key... and when your jsp page is smart enough to remember your last query... The results below are correct. If 2000 is replaced with 2001 in select it does exactly what I was expecting. Thanks for the reply, Jake. You can never discard "blidness" errors. Viktor > I'm having some very strange problems in Postgres (7.0.2) > > There's a DATETIME field in the table. Most of queries with > this field give wrong results: > > >SELECT time FROM tb; > > 2001-05-18 07:45:26+09 > 2001-05-18 07:45:28+09 > 2001-05-18 08:58:06+09 > 2001-05-18 08:58:06+09 > > >SELECT * FROM tb WHERE time > '2000-05-18 8:00:00'; > > 2001-05-18 07:45:26+09 > 2001-05-18 07:45:28+09 > 2001-05-18 08:58:06+09 > 2001-05-18 08:58:06+09 > > >SELECT * FROM tb WHERE time < '2000-05-18 8:00:00'; > > (0 rows) >
Home | Main Index | Thread Index
- Prev by Date: Re: REGEXP in perl questiion
- Next by Date: Re: Web forms and Japanese
- Prev by thread: Re: datetime queries in postgres
- Next by thread: What's closing off port 25?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links