Skip site navigation (1) Skip section navigation (2)

Re: Comparar Dos TIMESTAMP

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Edgardo herrera <herreraedgardo(at)gmail(dot)com>
Cc: Calabaza Calabaza <calalinux(at)gmail(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Comparar Dos TIMESTAMP
Date: 2008-03-26 19:27:03
Message-ID: 20080326192703.GK29730@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
Edgardo herrera escribió:

> En esta caso me arroja esta valor para ambos select:
> 
> Select age(fecha::timestamp) from consulta;
> Select age(fecha::timestamptz) from consulta;
> 
> "-12:50:46"
> 
> Tienes idea de por que será? faltará algo?

Doh ... el age() opera como si el dato fuera de tipo date :-(

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-es-ayuda by date

Next:From: Edgardo herreraDate: 2008-03-26 19:35:11
Subject: Re: Comparar Dos TIMESTAMP
Previous:From: Edgardo herreraDate: 2008-03-26 18:59:28
Subject: Re: Comparar Dos TIMESTAMP

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group