Re: substring ..

Поиск
Список
Период
Сортировка
От Tulio Oliveira
Тема Re: substring ..
Дата
Msg-id 3A3FC155.9A4709EB@marilia.com
обсуждение исходный текст
Ответ на substring ..  (Jeff MacDonald <jeff@hub.org>)
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Joel Burton"
Дата:
Сообщение: Re: substring ..
Следующее
От: "Robert B. Easter"
Дата:
Сообщение: Re: substring ..