Professor Coruja - Business and Open Source Technology
Pages
Home
Google Ads
Sunday, June 21, 2009
calcular a diferença de dias entre duas datas no PostgreSQL
Amigo leitor,
Abaixo um exemplo de como calcular a diferença de dias entre duas datas no PostgreSQL.
select to_date('02/07/2006 12:30:00','DD/MM/RRRR HH24:MI:SS') - to_date('01/06/2006 11:30:00','DD/MM/RRRR HH24:MI:SS') as DIAS
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment