From: Tulio Oliveira <mestredosmagos@marilia.com>
To: Jeff MacDonald <jeff@hub.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: substring ..
Date: Tue, 19 Dec 2000 18:13:09 -0200
Message-ID: <3A3FC155.9A4709EB@marilia.com> (raw)
References: <Pine.BSF.4.21.0012191505370.3386-100000@rage.hub.org>
Jeff MacDonald wrote:
>
> hi folks..
>
> i want to do this to a datetime field..
>
> select foo from table where substr(datefoo,1,11) = '2000-12-14';
>
> it returns no results yet..
>
> select substr(datefoo,1,11) does return some values that say
> 2000-12-14
>
> any clues ?
>
> Jeff MacDonald,
>
> -----------------------------------------------------
> PostgreSQL Inc | Hub.Org Networking Services
> jeff@pgsql.com | jeff@hub.org
> www.pgsql.com | www.hub.org
> 1-902-542-0713 | 1-902-542-3657
> -----------------------------------------------------
> Facsimile : 1 902 542 5386
> IRC Nick : bignose
> PGP Public Key : http://bignose.hub.org/public.txt
try remove the "-" from your WHERE clausule...
This signal appears only in SELECT results...
--
======================================================
AKACIA TECNOLOGIA
Desenvolvimento de sistemas para Internet
www.akacia.com.br
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: mestredosmagos@marilia.com, jeff@hub.org
Subject: Re: substring ..
In-Reply-To: <3A3FC155.9A4709EB@marilia.com>
* 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