Opa,

Ai vai uma solução.

select extract('month' from age('2008-05-05','2008-03-19'));

[]s

2008/5/19 Dickson Guedes <[EMAIL PROTECTED]>:

> Rafael Garbin escreveu:
> > Alguem sabe como faço no postgres para pegar a quantidade de meses entre
> > duas datas?
> > No oracle existia esta function, alguem sabe se no postgres existe algo
> > parecido?
>
> http://www.postgresql.org/docs/current/static/functions-datetime.html
>
> http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT
>
> Em tempo, Google é seu amigo...
>
> --
> []s
> Dickson S. Guedes
> -------------------------------------
> Projeto Colmeia - Curitiba - PR
> (41) 3254-7130 ramal: 27
> http://pgcon.postgresql.org.br
> http://makeall.wordpress.com/
> http://planeta.postgresql.org.br/
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral@listas.postgresql.org.br
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>



-- 
João Paulo
www.dextra.com.br/postgres
PostgreSQL
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Reply via email to