pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe <dev@freedomcircle.net>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
Cc: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Between and miliseconds (timestamps)
Date: Fri, 10 Nov 2006 18:00:49 -0500
Message-ID: <1163199650.682.9.camel@pampa> (raw)
In-Reply-To: <55c095e90611101034r7dc6bf1btba72aa24f9300593@mail.gmail.com>
References: <55c095e90611100628m1322eea5jeeca3a94d90e1eb1@mail.gmail.com>
	<20061110144458.GA2909@a-kretschmer.de>
	<55c095e90611100650q3ec0ec27tc0f8e94a0eb032eb@mail.gmail.com>
	<20061110152427.GA3634@a-kretschmer.de>
	<55c095e90611101034r7dc6bf1btba72aa24f9300593@mail.gmail.com>

Hi Ezequias,

On Fri, 2006-11-10 at 16:34 -0200, Ezequias Rodrigues da Rocha wrote:
> Ok thank you very much, but the suggestion (SQL:when field =
> '2006-09-06'::date) does not retrieve any row. It does not retrive any
> error too, but the suggestion does not applied to my requisition. 

I think you want to cast the field, not the constant, e.g.,

testdb=> select * from t2 where date(tm) = '2006-9-6';
              tm               
-------------------------------
 2006-09-06 00:00:01-04
 2006-09-06 23:59:59.999999-04
(2 rows)

Joe




view thread (6+ messages)  latest in thread

Message-ID: <1163199650.682.9.camel@pampa>
Permalink:  ../1163199650.682.9.camel@pampa/
Also on:    postgresql.org/message-id/1163199650.682.9.camel@pampa

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@freedomcircle.net, ezequias.rocha@gmail.com, andreas.kretschmer@schollglas.com
  Subject: Re: Between and miliseconds (timestamps)
  In-Reply-To: <1163199650.682.9.camel@pampa>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox