Boa tarde pessoal!

Hoje ao fazer uma verificação numa tabela, resolvi comparar duas colunas
(timestamp), e presenciei o seguinte

a)      Select * from tabela where coluna1 > coluna2
                
Saida :

243     05/04/2010 08:51:19     05/04/2010 08:51:18
247     05/04/2010 09:06:52     05/04/2010 09:06:52
253     05/04/2010 10:24:33     05/04/2010 10:24:33
254     05/04/2010 11:06:49     05/04/2010 11:06:48
255     05/04/2010 11:07:20     05/04/2010 11:07:20
257     05/04/2010 12:13:03     05/04/2010 12:13:03
258     06/04/2010 07:29:19     06/04/2010 07:29:18
259     06/04/2010 07:33:45     06/04/2010 07:33:44
260     06/04/2010 07:36:39     06/04/2010 07:36:38
261     06/04/2010 07:37:34     06/04/2010 07:37:33
262     06/04/2010 08:45:33     06/04/2010 08:45:32
263     06/04/2010 08:46:26     06/04/2010 08:46:26
264     06/04/2010 08:46:39     06/04/2010 08:46:39

Será minha abordagem na comparação deste datatype equivocada ou tem algo
errado?

Cenário : 

PostgreSQL 8.3.12 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.3.real
(Ubuntu 4.3.3-5ubuntu4) 4.3.3

Obrigado

Rubens José Rodrigues


_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a